Python Forum
Permision problem pip - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Permision problem pip (/thread-26300.html)



Permision problem pip - Jules - Apr-27-2020

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


RE: Permision problem pip - Larz60+ - Apr-27-2020

please show pip commands


RE: Permision problem pip - astral_travel - Apr-27-2020

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


RE: Permision problem pip - Jules - Apr-29-2020

(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


RE: Permision problem pip - snippsat - Apr-29-2020

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.



RE: Permision problem pip - Larz60+ - Apr-29-2020

I will vouch for pyenv. Use it all the time.


RE: Permision problem pip - Jules - Apr-29-2020

(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