pip doesn't work after Python upgrade - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: pip doesn't work after Python upgrade (/thread-37328.html) Pages:
1
2
|
pip doesn't work after Python upgrade - Pavel_47 - May-28-2022 Hello, After upgrading Python 3.6 to Python 3.10, pip became broken: Any suggestions ?Thanks. RE: pip doesn't work after Python upgrade - Axel_Erfurt - May-28-2022 try python3 -m pip install --upgrade pip
RE: pip doesn't work after Python upgrade - jlj - May-29-2022 (May-28-2022, 03:22 PM)Axel_Erfurt Wrote: try "C:\Python-3.10.2\python.exe: No module named pip" RE: pip doesn't work after Python upgrade - Pavel_47 - May-30-2022 (May-28-2022, 03:22 PM)Axel_Erfurt Wrote: tryI found where the problem is, but I don't know how to fix it. The problem comes from the fact that I installed python 3.10 keeping the old 3.6.9. It seems that gnome-terminal (my PC is running Ubuntu 18.04 LTS) is not compatible with python 3.10 because if I point python3 to 3.6.9 everything works. So this reveals that I can't use gnome-terminal when python3 points to 3.10. Any suggestions? RE: pip doesn't work after Python upgrade - bowlofred - May-30-2022 Never change the system python. Just install a new version alongside and either run a virtual environment or put it first in your PATH. RE: pip doesn't work after Python upgrade - Pavel_47 - May-30-2022 Quote:Never change the system python.What do you mean by "system python" ? I've just upgraded python (keeping old version) as I did it before. The both 3.6.9 and 3.10 are python3, isn't it ? The 1st line in gnome-terminal is: #!/usr/bin/python3. So there is no distcinction between 3.6.9 and 3.10 given that the both are python3. Quote:Just install a new version alongsideIt's installed alongside: I can point python3 either to 3.6.9 either to 3.10. When python3 points to 3.10, I can't use gnome-terminal which I got used to. Quote:... put it first in your PATHCan you elaborate, please. RE: pip doesn't work after Python upgrade - menator01 - May-30-2022 Is python3.10 in /usr/local/bin? I am on Ubuntu and that's where it is located on my box. Will typing /usr/local/bin/python3.10 in a terminal start the version or just typing python3.10 RE: pip doesn't work after Python upgrade - Pavel_47 - May-30-2022 (May-30-2022, 07:50 AM)menator01 Wrote: Is python3.10 in /usr/local/bin? I am on Ubuntu and that's where it is located on my box.On my PC both are in /usr/bin. RE: pip doesn't work after Python upgrade - Axel_Erfurt - May-30-2022 What is the output in terminal python3 --version if you have multiple versions you could start your script with the specific version python3 script.py uses the default version /path/to/python3.10 script.py to use python3.10 RE: pip doesn't work after Python upgrade - Pavel_47 - May-30-2022 (May-30-2022, 11:41 AM)Axel_Erfurt Wrote: What is the output in terminal It's because I switched to 3.6.9.When I switch to 3.10, gnome-terminal stops working. So the question is: does exist some technique, allowing to have at the same time (1) python3 pointed to 3.10 and (2) working gnome-terminal ? |