Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot downgrade to pip 9 #5290

Closed
chanansh opened this issue Apr 18, 2018 · 9 comments
Closed

cannot downgrade to pip 9 #5290

chanansh opened this issue Apr 18, 2018 · 9 comments
Labels
auto-locked Outdated issues that have been locked by automation type: support User Support

Comments

@chanansh
Copy link

  • Pip version: pip 10.0.0 from /opt/anaconda/lib/python3.6/site-packages/pip (python 3.6)
  • Python version: Python 3.6.4 :: Anaconda custom (64-bit)
  • Operating system:
    Distributor ID: Ubuntu
    Description: Ubuntu 16.04.3 LTS
    Release: 16.04
    Codename: xenial

Description:

trying to install catboost. I suspect it fails due to pip 10.0.0 since I know it works in older pip versions. Trying to downgrade pip fails.

What I've run:

python -m pip install pip==9.0.3 --upgrade --force-reinstall
Collecting pip==9.0.3
  Downloading https://files.pythonhosted.org/packages/ac/95/a05b56bb975efa78d3557efa36acaf9cf5d2fd0ee0062060493687432e03/pip-9.0.3-py2.py3-none-any.whl (1.4MB)
    100% |################################| 1.4MB 29.5MB/s
Installing collected packages: pip
  Found existing installation: pip 10.0.0
    Uninstalling pip-10.0.0:

pip --version
pip 10.0.0 from /opt/anaconda/lib/python3.6/site-packages/pip (python 3.6)

I would expect to get pip 9.0.3 when I do pip --version

@pfmoore
Copy link
Member

pfmoore commented Apr 18, 2018

What does python -c "import sys; print(sys.executable)" show? I suspect that your python executable is pointing to a different Python installation than your pip executable...

As this is Linux, doesn't python usually refer to a Python 2 installation?

@chanansh
Copy link
Author

it shows /opt/anaconda/bin/python

@chanansh
Copy link
Author

after sudo conda update -all I was able to get back pip 9 and install catboost.

@Kobra299
Copy link

you should be able to do it with this I just did it on windows based system so please adjust to your OS

python -m pip uninstall pip
python -m ensurepip
python -m pip install -U "pip<10"

@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label May 10, 2018
@littlehera
Copy link

I managed to revert pip to 9.0.3 using:
sudo pip install --force-reinstall pip==9.0.3

@lucas1677
Copy link

thanks @littlehera , sudo pip install --force-reinstall pip==9.0.3 just works fine.

@xavfernandez
Copy link
Member

Closing since the OP solved his issue.

@xavfernandez xavfernandez added type: support User Support and removed S: needs triage Issues/PRs that need to be triaged labels May 23, 2018
@dikmanm
Copy link

dikmanm commented May 31, 2018

I manage my problem using @Kobra299 to downgrade from pip 10

@lock
Copy link

lock bot commented Jun 2, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: support User Support
Projects
None yet
Development

No branches or pull requests

8 participants