63

I am running Python on a Windows machine at the following path:

C:\WinPython-64bit-3.4.4.1

I am trying to upgrade to the latest version of pandas (currently running '0.17.1') but am having problems.

I have looked at previous posts and have tried on the command line using :

c:/>pip install --upgrade pandas

but just got 'pip is not recognised as an internal or external command, operable program or batch file'.

halfer
  • 19,824
  • 17
  • 99
  • 186
Stacey
  • 4,825
  • 17
  • 58
  • 99
  • 3
    How did you install pandas originally? Many people now use `conda`, part of the Anaconda distribution. – chrisaycock Jun 21 '16 at 20:42
  • 2
    I think you can check this [question](http://stackoverflow.com/questions/23708898/pip-is-not-recognized-as-an-internal-or-external-command) – jezrael Jun 21 '16 at 20:43
  • Does this answer your question? ['pip' is not recognized as an internal or external command](https://stackoverflow.com/questions/23708898/pip-is-not-recognized-as-an-internal-or-external-command) – AMC Apr 24 '20 at 01:25

8 Answers8

132

try

pip3 install --upgrade pandas
Tim Seed
  • 5,119
  • 2
  • 30
  • 26
43

Simple Solution, just type the below:

conda update pandas 

Type this in your preferred shell (on Windows, use Anaconda Prompt as administrator).

Chiel
  • 662
  • 1
  • 7
  • 30
Gil Baggio
  • 13,019
  • 3
  • 48
  • 37
3

Add your C:\WinPython-64bit-3.4.4.1\python_***\Scripts folder to your system PATH variable by doing the following:

  1. Select Start, select Control Panel. double click System, and select the Advanced tab.
  2. Click Environment Variables. ...

  3. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. ...

  4. Reopen Command prompt window
Dmitry Andreev
  • 972
  • 7
  • 7
2

The easiest way to do that is to run the code in the Jupitar notebook

 !pip install -U pandas

If it gives an error message ((Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: Consider using the --user option or check the permissions.)) please add '--user' next the above code. as

!pip install -U pandas --user
S. Mandal
  • 71
  • 9
1

In my case, the problem was solved by doing

from pandas_datareader import data as pdr

import yfinance as yf
yf.pdr_override() # <== that's all it takes :-)
efueyo
  • 187
  • 1
  • 9
1

I simply ran conda cmd as admin then used

pip install --upgrade pandas
Muhammad Dyas Yaskur
  • 6,914
  • 10
  • 48
  • 73
Umar Faruk
  • 11
  • 1
  • 5
0

According to an article on Medium, this will work:

install --upgrade pandas==1.0.0rc0

Kevin Gao
  • 85
  • 6
0

I could not get conda to work. Here was my command...

conda install pandas==1.4

It couldn't find pandas version 1.4 to download from anaconda. However, I could get the following to work...

pip install pandas==1.4

Previously, I had pandas 1.2 installed and it automatically removed it before installing the updated pandas. I hope this helps someone.

halfelf
  • 9,737
  • 13
  • 54
  • 63
tdRock
  • 1
  • 1