From ca9dfff4b56cd73f48ac66e66ced94c95ce5a131 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 26 Apr 2015 20:09:20 +0200 Subject: [PATCH] improve docs for win install Adding Python to PATH during installation is useful, but doesn't help users who have already installed Python. The Powershell command takes care of the Scripts directory as well. --- doc-src/install.html | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/doc-src/install.html b/doc-src/install.html index 80298a4a8..0afd2bad4 100644 --- a/doc-src/install.html +++ b/doc-src/install.html @@ -18,12 +18,8 @@ Once installation is complete you can run mitmproxy ### Installation From Source -If you would like to install mitmproxy directly from the master branch on GitHub or would like to get set up to contribute to the project, install the dependencies with apt: - -
-$ sudo apt-get install python-pip python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev
-
- +If you would like to install mitmproxy directly from the master branch on GitHub or would like to get set up to contribute to the project, +install the dependencies as you would for a regular mitmproxy installation (see previous section). Then see the Hacking section of the README on GitHub. @@ -53,18 +49,28 @@ Then see the Python website. The Windows MSI installer is fairly straightforward and even includes pip as long as you are installing a version of Python 2 after 2.7.9. For the most part, you can accept the defaults but one option you should change during installation is "Add python.exe to Path". This will make it easier to run Python. - + +First, install the latest version of Python 2.7 from the Python website. +If you already have an older version of Python 2.7 installed, make sure to install pip +(pip is included in Python 2.7.9+ by default). + +Next, add Python and the Python Scripts directory to your PATH variable. You can do this easily by running the following in powershell:
-C:\> set PATH = C:\Python27;C:\Python27\Scripts;%PATH%
-
-C:\> pip install mitmproxy
+[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Python27\;C:\Python27\Scripts\", "User")
 
-Once installation is complete you can run mitmdump from a Command Prompt. + +Now, you can install mitmproxy by running + +
+pip install mitmproxy
+
+ +Once the installation is complete, you can run mitmdump from a command prompt. ### Installation From Source