I wanted to upgrade the python version from 3.5 to 3.6. Since I use WinPython , I downloaded and installed the latest version, as before, with version 3.5.
However, if I use version 3.6, I get it ModuleNotFoundError
whenever I import the created module itself. Minimal example: I created a file t1.py
containing only the operator pass
and a file t2.py
containing the following code:
import t1
print("done")
Both files are in the same folder D:\MyProject\src
. Now when I run the file with python 3.5, everything works fine:
'C:\Program Files\WinPython-64bit-3.5.1.2\python-3.5.1.amd64\python.exe' D:\MyProject\src\t2.py
done
However, with python 3.6 I get
'C:\Program Files\WinPython-64bit-3.6.0.1Qt5\python-3.6.0.amd64\python.exe' D:\MyProject\src\t2.py
Traceback (most recent call last):
File "D:\MyProject\src\t2.py", line 6, in <module>
import t1
ModuleNotFoundError: No module named 't1'
I ran out of ideas about what could be a problem and would appreciate a new inspiration.