I have created a project like the below one:
project
|
| --package1
| |
| -- __init__py
| --module1.py
|
| --package2
|
--__init__.py
--module2.py
I want to import module1 into module2, (from package1 import module1)
In PyCharm everything is just working fine. But when I try to open the file "module2.py" from Windows10 command prompt I get ModuleNotFoundError: No module named 'module1'.
I was looking for the solution but not a single one worked.
I'm using python 3.6 and I have set environment variable PYTHONPATH = I:\project\package1