我正在为 Python 开发收获 API。当我在终端上运行 Python 时
/usr/local/lib/python2.7/dist-packages
。
它能够进口收获。但是当我在任何其他文件夹中运行相同的命令时,它无法识别相同的并抛出ImportError
.
我正在使用的模块在(从 得到这个inspect.getfile
)。
'/usr/local/lib/python2.7/dist-packages/python_harvest_redux-3.1.1-py2.7.egg/harvest/harvest.pyc'
我该怎么办?