Python Forum

Full Version: Permision problem pip
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
when I'm triying to do something with pip like download or do an update I have this error code or similiar but with another file :

1#
Error:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'RECORD' Consider using the `--user` option or check the permissions.
2#
Error:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/3.7' Consider using the `--user` option or check the permissions.
How I'm supposed to check the permissions as instructed or fix the problem?

Thank you
please show pip commands
i've encountered something similar when i tried to update pip version, i think if you log in to root (in linux), or maybe admin (in windows) - and run the update - it works
(Apr-27-2020, 04:07 PM)Larz60+ Wrote: [ -> ]please show pip commands

For the first error message I had use this commands :
pip3 install --upgrade pip
For the other I had use this one :
pip3 install tensorflow




Everything works until I get this message (download is done before).

Thanks

(Apr-27-2020, 07:43 PM)astral_travel Wrote: [ -> ]i've encountered something similar when i tried to update pip version, i think if you log in to root (in linux), or maybe admin (in windows) - and run the update - it works
Thank you but I have already the admin rights !

Thanks again
There is a hint i the error message.
pip3 install --user tensorflow
Look at [Errno 13] Permission denied How i solve this problem

Can also mention a tutorial here pyenv Simple Python Version Management
snippsat Wrote:No more using python3 or pip3 or sudo or --user when pip install something.
It's always python and pip to version set as global,eg pip install requests to global version.
I will vouch for pyenv. Use it all the time.
(Apr-29-2020, 10:02 AM)snippsat Wrote: [ -> ]There is a hint i the error message.
pip3 install --user tensorflow
Look at [Errno 13] Permission denied How i solve this problem

Can also mention a tutorial here pyenv Simple Python Version Management
snippsat Wrote:No more using python3 or pip3 or sudo or --user when pip install something.
It's always python and pip to version set as global,eg pip install requests to global version.

Thank you very much ! And for the hint I had no idea of where I could put it !

For pyenv there is indeed some advantage, I'm gonna try that soon.

Thank you again