Upgrade version of Pandas
Sebastian Wright
I am running Python on a Windows machine at the following path:
C:\WinPython-64bit-3.4.4.1I 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 pandasbut just got 'pip is not recognised as an internal or external command, operable program or batch file'.
7 Answers
try
pip3 install --upgrade pandas 1 Simple Solution, just type the below:
conda update pandas Type this in your preferred shell (on Windows, use Anaconda Prompt as administrator).
3Add your C:\WinPython-64bit-3.4.4.1\python_***\Scripts folder to your system PATH variable by doing the following:
- Select Start, select Control Panel. double click System, and select the Advanced tab.
Click Environment Variables. ...
In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. ...
- Reopen Command prompt window
The easiest way to do that is to run the code in the Jupitar notebook
!pip install -U pandasIf 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 According to an article on Medium, this will work:
install --upgrade pandas==1.0.0rc0
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 :-) I simply ran conda cmd as admin then used
pip install --upgrade pandas