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.
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
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?
it shows /opt/anaconda/bin/python
after sudo conda update -all
I was able to get back pip 9 and install catboost.
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"
I managed to revert pip to 9.0.3 using:
sudo pip install --force-reinstall pip==9.0.3
thanks @littlehera , sudo pip install --force-reinstall pip==9.0.3
just works fine.
Closing since the OP solved his issue.
I manage my problem using @Kobra299 to downgrade from pip 10
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.
Most helpful comment
I managed to revert pip to 9.0.3 using:
sudo pip install --force-reinstall pip==9.0.3