Upgrade pip to ver18 on anaconda

2019-02-08 11:33发布

I am using anaconda 64-bit for python v3.6 on Windows 10.

Whenever I use pip on anaconda, I get the following message;

You are using pip version 10.0.1, however version 18.0 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

I read that the safe way to upgrade pip on anaconda is to use conda;

conda update pip

However, using the conda command does not upgrade to ver18. Is it safe to use python -m pip install --upgrade pip to force pip to be upgraded to ver18? Any risk of breaking anaconda? Anyone tried?

4条回答
SAY GOODBYE
2楼-- · 2019-02-08 11:47

Enter the following command:

python.exe -m pip install --upgrade pip
查看更多
The star\"
3楼-- · 2019-02-08 11:50

Small update:

Anaconda has recently distributed pip 18.1 version.

Both via Anaconda Prompt or via Anaconda Navigator, you should be able to upgrade pip and its dependencies (libcur, pycurl, qt, so on and so forth).

查看更多
啃猪蹄的小仙女
4楼-- · 2019-02-08 11:57

I will answer my own question. I got the answer thanks to one of the comments from abarnert who suggested conda-forge.

Run the commands below;

conda config --add channels conda-forge 
conda update pip
查看更多
三岁会撩人
5楼-- · 2019-02-08 12:00

A bit different here but I'm using Linux.

Even though I had conda-forge in my channel list, I still couldn't just run conda update pip to update. I had to run the following to install that specific version.

conda install pip=18.0

查看更多
登录 后发表回答