我正在使用pyinsane模块,运行后sudo pip install pyinsane
,我相信 pyinsane 已启动并运行。在使用以下命令测试此示例后:
python /home/administrator/Documents/git-repositories/ramrod/code/main.py /home/administrator/Documents/git-repositories/ramrod/code/test.jpeg
我懂了:
Traceback (most recent call last):
File "/home/administrator/Documents/git-repositories/ramrod/code/main.py", line 7, in <module>
import src.abstract as pyinsane
ImportError: No module named src.abstract
代码:
#!/usr/bin/env python
import sys
from PIL import Image
import src.abstract as pyinsane
(有更多代码要遵循,但没有必要重现该问题。我正在寻找的只是摆脱这个错误。)