I keep getting "no module named 'module.py'" after installing the package. How do I fix this?
Asked 8 months ago
Santino Vargas
Thursday, October 06, 2022
Keep in mind that Python has two types of imports - relative and absolute imports. If you're using absolute imports, make sure to set your Python path like this "export PYTHONPATH='PYTHONPATH:/.../" for MacOS and Linux, or set "PYTHONPATH=..." for Windows. If absolute imports don't work, then relative probably will. Make sure to try them both out and see which one doesn't trigger the error.
Please follow our Community Guidelines