Hello,
After upgrading Python from 3.12.0 to 3.13.1, and manually editing Windows' PATH (otherwise, it still ran the previous version)… Python can no longer find a module that was available before:
Thank you.
--
Edit:
For others' benefit, here's the fix:
But it failed installing this package (possibly more, since the process doesn't ignore and proceed with the other modules):
--
Edit: With too many modules not compatible with the latest Python, I edited Windows' user PATH to go back.
But, while "python --version" does say 3.12.0… a module I use no longer works :-/
How do I go back to the working Python?
--
Edit: Besides not having the modules re-installed as part of the upgrade, and some modules being incompatible… the Py launcher used 3.13.1, causing the error. Re-running the installer to remove 3.13.1 solved the problem.
After upgrading Python from 3.12.0 to 3.13.1, and manually editing Windows' PATH (otherwise, it still ran the previous version)… Python can no longer find a module that was available before:
ModuleNotFoundError: No module named 'ebooklib'Why is that, and what's the fix?
Thank you.
--
Edit:
For others' benefit, here's the fix:
pip3 freeze --path c:\Users\joe\AppData\Local\Programs\Python\Python312\Lib\site-packages\ > python_requirements.txt pip3 install -r python_requirements.txtAt least by default, looks like the Python installer doesn't take care of reinstalling the packages :-/
But it failed installing this package (possibly more, since the process doesn't ignore and proceed with the other modules):
Collecting Pillow==10.0.1 (from -r python_requirements.txt (line 59)) Downloading Pillow-10.0.1.tar.gz (50.5 MB) ---------------------------------------- 50.5/50.5 MB 2.2 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [21 lines of output] … note: This error originates from a subprocess, and is likely not a problem with pip.Looks like upgrading Python is a bit more involved that I naïvely thought.
--
Edit: With too many modules not compatible with the latest Python, I edited Windows' user PATH to go back.
But, while "python --version" does say 3.12.0… a module I use no longer works :-/
"ModuleNotFoundError: No module named 'ebooklib'"Why does the module no longer load? Don't modules live in c:\Users\joe\AppData\Local\Programs\Python\Python312\Lib\site-packages\, and thus aren't affected by upgrading Python?
How do I go back to the working Python?
--
Edit: Besides not having the modules re-installed as part of the upgrade, and some modules being incompatible… the Py launcher used 3.13.1, causing the error. Re-running the installer to remove 3.13.1 solved the problem.