LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-08-2018, 05:09 PM   #1
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Upgrading pip2 destroys pip3


When installing a package I saw the notice that pip had an upgrade available. (Both 2.7.15 & 3.whateveriscurrent are installed) So I followed the instructions...

pip2 install --upgrade pip

Then when I tried doing this for pip3 afterward it was suddenly gone. Trying the python3 -m ensurepipwhatever command reports that it is installed, yet pip3 is missing, as is pip-3.x. Also, pip (no numeric suffix) --version reports that it's tied to python-2.7, so it's not just renamed.

The only way to fix this is to rm -rf /usr/lib/python* and reinstall them from source, which downgrades pip2 & pip3 to 9.x. Running pip3 install --upgrade pip FIRST will work. But, once again upgrading pip2 completely removes pip3.

Any ideas how to fix this?
 
Old 06-09-2018, 02:07 PM   #2
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Original Poster
Rep: Reputation: 167Reputation: 167
Finally, I figured out a way to fix this...

pip2 install -U pip

followed by...

python3 -m pip install -U pip

There should now be both a pip2 and pip3 at the 10.0.1 version. The non-numbered pip command will be a copy of the last one that was upgraded. If a different one is desired, simply copy /usr/bin/pip2 or /usr/bin/pip3 to -> /usr/bin/pip as needed.

Why the upgrade process for pip2 removes any existing version of pip3 & pip-3.6 I still don't know. I just know that easy_install3 and python3 -m ensurepip etc. did not work to upgrade to a working copy of pip3 after pip2 was upgraded to 10.0.1.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to install Python "pip"/"pip3" in slackware-arm? njathan Slackware - ARM 5 08-09-2017 12:35 PM
After upgrade python3.4 to python3.5.1 , not able to install packages "request" though pip3 YOGESHAS87 Linux - Software 1 08-03-2016 10:38 PM
Proxy destroys my QoS benji_pl Linux - Networking 0 10-15-2009 10:00 AM
Mozilla destroys the load? piratebiter Linux - Software 1 05-26-2005 01:44 PM
rivafb destroys X server icyfire Slackware 6 11-19-2002 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration