I have a PyCharm project organized as follows:
---project folder
-----------utilities
-----------------file.py
-----------------file2.py
-----------work
-----------------main.py
in main.py I'm using some functions from the utilities package as follows:
from utilities.file import function, another_function
in PyCharm I can run it and it works.
When I run it on the terminal I hit
Traceback (most recent call last):
File "work\main.py", line 13, in <module>
from utilities.file import function
ModuleNotFoundError: No module named 'utilities'
Someone knows why and how to fix it?
__init__.pyin folderutilitiesand try again see if it works