Failed to install pika using pip install

Getting the following after startup: pip install pika
(I cut the exception to the first line in the trace and the last line)

Collecting Pika
  using cahced pika-0.10.0-py2.py3-none-any.whl
Installing collected packages : pika
Exception:
Traceback 
File" /usr/local/lib/python2.7/site-packages/pup/basecommand.py line 223 in main status = self.run(options, args)
.
.
.
File "/usr/local/lib/python2.7/os.py" line 157 in makedirs
mkdir(name ,mode)
OSError [Errno13] Permission denied: '/usr/local/lib/python2.7/site-packages/pika'

Also using sudoeven earlier, but I got it sudo pip,command not found.

+4
source share
2 answers

it's better to use virtualenv and run the application in the python sandbox, but if you still want to install on your system packages, I think you should reinstall pip. if you are on ubuntu or debian just run sudo apt-get updateand sudo apt-get install python-pipthen try install pika with sudo again:sudo pip install pika

+6
source

, pika python, .

python root . , "sudo" - root, , "su".

sudo :

sudo apt-get install python-pika

, pip:

sudo pip install pika

. pika, virtualenv, . : http://docs.python-guide.org/en/latest/dev/virtualenvs/

+2

Source: https://habr.com/ru/post/1608235/


All Articles