공부
ImportError when trying to import a custom module in Python
승가비
2021. 5. 19. 18:21
728x90
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')
728x90