Python Basic Bugs Fixing

Last updated on:2 years ago

I have been accumulating some methods to debug programme written by python. Hope it also works for you. Please note that your file paths and file names are likely not the same as mine, you should change them according to the notice.

Could not install packages due to an OSError

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 's:\\anaconda\\lib\\site-packages\\google_pasta-0.2.0.dist-info\\METADATA'
Check the permissions.


Remove the folder s:\anaconda\lib\site-packages\google_pasta-0.2.0.dist-info, and then,

pip install google_pasta

Ignoring invalid distribution -cipy

WARNING: Ignoring invalid distribution -cipy (s:\anaconda\lib\site-packages)


Remove folders in s:\anaconda\lib\site-packages with ~.


Installation problem :Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: #6647