Search code examples
pythonpipupgrade

upgrading packages in python


I'm looking to update Python packages. But by running this code

pip install --upgrade pandas

in Command Prompt, I get the following error

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\pip\\_internal\\build_env.py'
Consider using the `--user` option or check the permissions.

What is the problem?


Solution

  • You don't have permissions. Either add a flag --user to your command or open a terminal as an administrator.