Migrate packages to Python 3.13 on F41

Trying to follow these instructions but didn’t work.

python3.12 -m pip uninstall $(python3.12 -m pip list --user | cut -d" " -f1)

Usage:   
  /usr/bin/python3.12 -m pip uninstall [options] <package> ...
  /usr/bin/python3.12 -m pip uninstall [options] -r <requirements file> ...

no such option: -----------------

Anyway i am trying this for first time. In the past i will just reinstall the packages i needed for the new version of python. This way leaves old binaries on .local/bin ?

What does this portion say?

python3.12 -m pip list --user | cut -d" " -f1

lists packaged installed with python 3.12

I’m aware what it does; I want to know what the results are.

Sorry don’t want to list my installed packages. Anyway manually uninstalls them one by one

Never mind, I see what the problem is; it starts like this:

$ python -m pip list --user
Package              Version
-------------------- --------

and Package and ---------------- are not actually package names. So the command should be:

python3.12 -m pip uninstall $(python3.12 -m pip list --user | tail -n +3 | cut -d" " -f1)

Or using the installed.txt from the previous step would work as well:

python3.12 -m pip uninstall $(cut -d= -f1 installed.txt)
1 Like

thanks, i ll check later with python3.11, if that is the case documentation needs correction