Can't install mitmproxy:

lucgian841 picture lucgian841 · Mar 31, 2014 · Viewed 9.5k times · Source

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 python.py 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???

UPDATE

Here is the pip.log

Answer

user2573072 picture user2573072 · Oct 23, 2014

You can also pip install from github:

In this order:

  1. Install netlib: (sudo) pip install git+https://github.com/mitmproxy/netlib.git
  2. Install mitmproxy: (sudo) pip install git+https://github.com/mitmproxy/mitmproxy.git

This will install all requisite libraries and provide you with the most up-to-date version of mitmproxy.