티스토리 뷰

https://stackoverflow.com/questions/5875810/importerror-when-trying-to-import-a-custom-module-in-python

 

ImportError when trying to import a custom module in Python

Note that I searched SO for this error and while there were many similar questions, I didn't find one that addressed this particular issue. I'm working on a Python module that looks like this: /c...

stackoverflow.com

user@host:~$ PYTHONPATH=/path/to/whatever python some_file.py

export PYTHONPATH=/path/to/whatever

import sys
sys.path.append('/path/to/whatever')
댓글
댓글쓰기 폼