I run the command:
python.exe -m pip install --upgrade pip
But when I do I get an OSError saying my access is denied.
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\Python312\\Lib\\site-packages\\pip\\__init__.py'
Consider using the `--user` option or check the permissions.
How can I update it safely? I have tried downloading the package online but it doesn't work and found other answers saying use sudo but it's not safe.
I run the command:
python.exe -m pip install --upgrade pip
But when I do I get an OSError saying my access is denied.
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\Python312\\Lib\\site-packages\\pip\\__init__.py'
Consider using the `--user` option or check the permissions.
How can I update it safely? I have tried downloading the package online but it doesn't work and found other answers saying use sudo but it's not safe.
Try opening your command prompt/terminal with administrator privileges