eclipse - python问题
PHPz
PHPz 2017-04-18 09:04:15
0
3
312

我把一个网上下载的python包解压后,进入该文件目录运行python setup.py install(解压后的包没有放在python安装目录下),然后在自己的项目里from shomop.api import ShomopClient引入,运行时报ImportError: No module named api 错误,可是我看里面是有api的啊

这个python包是我自己的另一个项目,我打的包,然后准备在这个项目引入

下图为在python安装目录下执行python setup.py install后。不过还是执行包ImportError: No module named api 错误

错误内容
:

加了这个还是报错

PHPz
PHPz

学习是最好的投资!

reply all(3)
小葫芦

Two options: 1. Place the module to be imported in the project directory 2. Place it in the installation directory
Take a look yourself

洪涛

No one can answer?

黄舟

It is estimated that this is missing in your codesys.path.append(/path/to/shomop), so the package cannot be found when running

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template