Skip to content Skip to sidebar Skip to footer

Pip Error:should Upgrade Pip, Pandas And Matplotlib But Returns Error

I had to uninstall Python 3.6.1 and install 3.5.0 because this is the only version suitable for TensorFlow. I changed my path correctly and after I installed first package (numpy)

Solution 1:

try: pip3 install pandas matplotlib without the comma. I believe that the error is that if you have something other than a space, pip is looking for a specific version.

see: How to install multiple python packages at once using pip

Solution 2:

Press windows button on your keyboard. Type cmd and press Ctrl+Shift+Enter to start command prompt as admin

Type in:

python -m pip install --upgrade pip

Then to install what you want type:

pip install pandas matplotlib

note that the package names are not separated by comma but simply by space

Solution 3:

This question has become a new question and thus requires a new answer. After fixing your comma problem your system started yelling at you because matplotlib depends on packages that pip cannot install without compiling source code to binary, namely freetype and png. In theory you could setup a compiler and work this all out but that is a real pain for most of us.

The answer to your problems is to completely wipe your python installs and start over. This time, install the Anaconda python distribution, and instead of pip install matplotlib, use conda install matplotlib. Actually if you install the full Anaconda distribution, matplotlib will already be there.

The beauty of Anaconda is that they keep track of large collection of precompiled packages so you don't have to worry about building all this stuff the way you do in pip.

If you don't want to do that and want to keep your current python setup, you can download all the wheels from the Christopher Gholke website and use pip to install the wheels. These packages contain the compiled binaries you need that are not available directly from the PyPI

Post a Comment for "Pip Error:should Upgrade Pip, Pandas And Matplotlib But Returns Error"