pythonpandaspip

How to upgrade Pandas via pip?


I currently have Pandas 1.4.2 installed. I want to update to the latest version, so I entered this into the command prompt:

pip install -U pandas

However, it just returns this message:

Requirement already satisfied: pandas in c:\users\my_username\appdata\local\programs\python\python39\lib\site-packages (1.4.2)

Which sounds like it won't install the new version because I already have Pandas installed. But I thought the -U specifies that you want to update an existing package?

Does anyone know where I'm going wrong please? I'm using pip 22.0.4 and Python 3.9.12 if that helps.


Solution

  • Problem resolved - it appears that the cause was a setting relating to my work's VPN. Turning the VPN off allowed for the update to take place.