Reputation: 41
I tried using poetry with pipx. Poetry used the wrong python version, so I deinstalled it and deinstalled the python version it was using, so when reinstalled it would use Python3.10 instead of 3.9.
Now without having Python3.9 I cant do anything with pipx.
[Fatal error in launcher: Unable to create process using (my path to my python version)]
How do I completely uninstall it so it uses Python3.10?
Upvotes: 3
Views: 10513
Reputation: 647
If you installed with apt
, you can use the same way to uninstall:
sudo apt remove pipx
If you installed with apt-get
:
sudo apt-get remove pipx
Upvotes: 1
Reputation: 13518
I received the same error message when I uninstalled Python 3.10 after installing Python 3.12 and tried to run pipx (installed with Python 3.10) or any package I had made available system-wide with it.
Here is what worked for me on my platform (Windows 11):
edit your Path
environment variable to remove references to previous Python version (3.10 in my case): type "environment properties" into Windows search bar, then in the System Properties window, click "Environment Variables", select Path
and click "modify"
in C:\Users\[your_user_name]\.local
, delete pipx
directory
in C:\Users\[your_user_name]\.local\bin
, delete any .exe
file referring to a package once installed with pipx
in C:\Users\[your_user_name]\AppData\Roaming\Python
, delete any directory referring to the previous Python or pipx version
install pipx with your new Python: python -m pip install --user -U pipx
then pipx ensurepath
Then running pipx
in your terminal should not throw anymore an error and display help, as expected.
Upvotes: 0