I run "python3 -m pip install setuptools" but get error

cutepenguin

New Member
Joined
Feb 24, 2019
Messages
3
Reaction score
0
Credits
30
. I ran `python3 -m pip install setuptools`.

But I got this error message
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/easy_install.py' Consider using the `--user` option or check the permissions."




I then tried to run it with sudo.
sudo python3 -m pip install setuptools
[sudo] password for penguin:
The directory '/home/penguin/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/penguin/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting setuptools
Downloading https://files.pythonhosted.org/pack...b378a6/setuptools-40.8.0-py2.py3-none-any.whl (575kB)
100% |████████████████████████████████| 583kB 2.0MB/s
Installing collected packages: setuptools
Successfully installed setuptools-40.8.0
 

Members online


Top