charnik
November 16, 2024, 8:32am
1
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 ?
qulogic
(Elliott Sales de Andrade)
November 16, 2024, 9:01am
2
What does this portion say?
python3.12 -m pip list --user | cut -d" " -f1
charnik
November 16, 2024, 9:09am
3
lists packaged installed with python 3.12
qulogic
(Elliott Sales de Andrade)
November 16, 2024, 9:17am
4
I’m aware what it does; I want to know what the results are.
charnik
November 16, 2024, 9:25am
5
charnik:
-------
Sorry don’t want to list my installed packages. Anyway manually uninstalls them one by one
qulogic
(Elliott Sales de Andrade)
November 16, 2024, 9:31am
6
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
charnik
November 16, 2024, 9:46am
7
thanks, i ll check later with python3.11, if that is the case documentation needs correction