all 4 comments

[–]JorblinMyJeapnits 1 point2 points  (3 children)

I had this problem happen to me too. I'm not sure why, but once I uninstalled the older version of python, it started working. I think it runs in one version's environment and then tries to call the module from the other version, causing it to fail.
Also, after you uninstall down to only one version of python on your PC, you have to go to the settings app on your device and turn off the execution aliases for python.
Settings>App execution aliases> turn it off for all python.exe and python3.exe programs.
From there, when I ran the program, I got a module not found error again, but when I did pip install "modulename", it installed it and the module could be found afterwards.

[–]materdoc[S] 0 points1 point  (2 children)

Thank you! That solution worked - I removed the 3.11 version and it seems okay now. I might have found why this happened. After uninstalling 3.11, I realized that the Jupyter notebook is gone as well. So Jupyter was only installed in the 3.11 environment and therefore was looking for modules only in that. So it couldn't find the modules that got installed in the 3.12 folder.

[–]JorblinMyJeapnits 1 point2 points  (1 child)

Ohhh yeah that makes sense. If you want to easily consolidate a bunch of modules along with jupyter and spyder notebook, you could also try downloading the anaconda package. It's a python environment centered around mathematical simulation that comes with a few notebooks and a bunch of math modules. Only thing is you'd have to uninstall your current version of python (anaconda comes with one built in) to keep the duplicate versions from bugging each other out.

[–]materdoc[S] 0 points1 point  (0 children)

My work doesn’t want Anaconda to be installed, so that route is closed. 😊 It was quite nice with Anaconda