Shivid
Shivid

Reputation: 1343

pip doesn't upgrade in windows

Even though there were some similar question but none of proposed solution applied to my case. Simply, after tensorflow installationattempting to install packages this message

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

like this: enter image description here But following this python -m pip install --upgrade pip doesn't work even with administrator level, nor this one : python -m pip install -U pip.

(I'm using Miniconda, just as an additional information)

Upvotes: 2

Views: 4157

Answers (5)

RubenvWyk
RubenvWyk

Reputation: 11

After much wailing and gnashing of teeth, I found the answer here.

To install this package with conda run one of the following:

conda install -c conda-forge pip

Sample Output:

The following packages will be UPDATED:

    ca-certificates: 2018.03.07-0      --> 2018.4.16-0       conda-forge
    certifi:         2018.4.16-py36_0  --> 2018.4.16-py36_0  conda-forge
    conda:           4.5.9-py36_0      --> 4.5.9-py36_0      conda-forge
    openssl:         1.0.2o-hfa6e2cd_1 --> 1.0.2o-hfa6e2cd_1 conda-forge
    pip:             10.0.1-py36_0     --> 18.0-py36_1       conda-forge

Proceed ([y]/n)? y


Downloading and Extracting Packages ca-certificates-2018 |  176 KB |
############################################################################## | 100% openssl-1.0.2o       |  5.4 MB |
############################################################################## | 100% conda-4.5.9          |  654 KB |
############################################################################## | 100% certifi-2018.4.16    |  143 KB |
############################################################################## | 100% pip-18.0             |  1.8 MB |
############################################################################## | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done

(base) C:\Users\User-pc>pip --version pip 18.0 from C:\dev\Anaconda3\lib\site-packages\pip (python 3.6)

Upvotes: 1

Leal Li
Leal Li

Reputation: 257

I think it manybe PIP command before installing TensorFlow can be normal use, only after installation problems, probably because the new version of Python compatible with TensorFlow might be a little less, so update PIP and conda command, can fix. by command conda install pip

Upvotes: 2

Itachi
Itachi

Reputation: 2995

I had similar problem after installing tensorflow in windows. pip install wasn't working for me. pip install returned same error.

After some checks, i found that issue was with html5lib and setuptools. I have answered the same here transport_encoding solved

Basically, i reinstalled html5lib using

conda install -c anaconda html5lib

which were superseded by a higher priority channel

Upvotes: 1

Bram Vanroy
Bram Vanroy

Reputation: 28447

I haven't worked in Conda-environments for a long time but I think it was:

conda update pip

Upvotes: 1

Niranjan
Niranjan

Reputation: 67

@Hamidreza, use this commandpip install --upgrade pip If it is not working, try this as alternate easy_install pip I hope it works

Upvotes: 1

Related Questions