我把一个网上下载的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 错误
错误内容
:
加了这个还是报错
高洛峰2017-04-18 09:06:15
Two options: 1. Place the module to be imported in the project directory 2. Place it in the installation directory
Take a look yourself
黄舟2017-04-18 09:06:15
It is estimated that this is missing in your codesys.path.append(/path/to/shomop)
, so the package cannot be found when running