Search code examples
pythonpip

Updating packages using pip-review doesn't work


I tried to update all my packages using pip-review, which worked for me once, but now it doesn't work. When I write

pip-review -a

In the CMD, I get these errors:

ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\Users\\MY_NAME\\AppData\\Local\\Programs\\Python\\Python39\\Lib\\site-packages\\~yzmq.libs\\libsodium-3b4bc14f.dll'
Consider using the `--user` option or check the permissions.

WARNING: Ignoring invalid distribution -ywin32 (c:\users\MY_NAME\appdata\roaming\python\python39\site-packages)
WARNING: Ignoring invalid distribution -yrsistent (c:\users\MY_NAME\appdata\local\programs\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ffi (c:\users\MY_NAME\appdata\local\programs\python\python39\lib\site-packages)

I tried to open the CMD using administrator, and still the same errors. I tried to use:

pip-review -i

and update just a few packages, and not all of them together, still the same errors.

I am using python 3.9.1, nothing changed from the last time I used pip-review (that worked) except that I did download another version of python, python 3.8 (which I used only to run 2 pyc files).


Solution

  • Uninstalling pip-review and re-installing it solved the problem.