lucgian841 lucgian841 - 1 month ago 13x
Python Question

Can't install mitmproxy:

Im trying to install mitmproxy on a Ubuntu 14.04 computer, but I'm getting error. I found on the web how I should install it by using this code:

sudo install pip mitmproxy

So I installed python, now when I run the command it works until I get this problem:

Command egg_info failed with error code 1 in /tmp/pip_build_root/cryptography

I tried to update python but still the same
Exactly I installed python in this way:

sudo apt-get install python-pyasn1 python-flask python-urwid

What's wrong???


Here is the pip.log


Judging by the log you got from pip the problem here is that the development libraries for libffi are not installed. You can rectify it with:

$ sudo apt-get install libffi-dev

and retry installing.

The clue in your error log is this line:

Package libffi was not found in the pkg-config search path.

If pkg-config is unable to find a library it means that the files needed to develop with this library are missing. On an Ubuntu or Debian system this usually means installing the package that has the name of the library plus -dev.