From 88dcff9c475e34ad7be43583129ddad23bb19094 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Sat, 28 Feb 2015 00:24:15 +0000 Subject: [PATCH] [Doc] Update instructions for installing Windows dependencies with pip --- doc/sphinx/install.rst | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/doc/sphinx/install.rst b/doc/sphinx/install.rst index a9e055e9e..10b2e5288 100644 --- a/doc/sphinx/install.rst +++ b/doc/sphinx/install.rst @@ -55,18 +55,36 @@ installation instructions are for Cantera 2.1.1. and will include Numpy as well as many other packages useful for scientific users. -3. **Install Numpy** +3. **Install pip** + + - Go to the `pip installation instructions + `_ and download + `get-pip.py` (You may need to right click the link and select *Save target + as...*). + + - From a administrative command prompt, run `get-pip.py` with the copy of + Python you plan on use with Cantera, e.g.:: + + c:\python33\python.exe "%USERPROFILE%\Downloads\get-pip.py" + +4. **Install Numpy** - Go to the `Unofficial Windows Binaries for Python Extension Packages page `_. - - Download the most recent release of the 1.x series for Python *X.Y* that - matches your Python architecture. The binaries for Cantera 2.1.1 require - Numpy 1.8.0 or newer. + - Download the most recent release (distributed as a "wheel" archive) of the + 1.x series for Python *X.Y* that matches your Python architecture. The + binaries for Cantera 2.1.1 require Numpy 1.8.0 or newer, e.g. In the + filename, the digits after "cp" indicate the Python version, e.g. + ``numpy‑1.8.2+mkl‑cp33‑none‑win_amd64.whl`` is the installer for 64-bit + Python 3.3. - - Run the installer. + - From an administrative command prompt, install the downloaded wheel using + pip, e.g.:: -4. **Remove old versions of Cantera** + c:\python33\scripts\pip.exe install "%USERPROFILE%\Downloads\numpy‑1.8.2+mkl‑cp33‑none‑win_amd64.whl" + +5. **Remove old versions of Cantera** - Use The Windows "Add/Remove Programs" interface @@ -74,7 +92,7 @@ installation instructions are for Cantera 2.1.1. - The Python module will be listed as "Python *X.Y* Cantera ..." -5. **Install Cantera** +6. **Install Cantera** - Go to the `Cantera Downloads `_ page. @@ -89,7 +107,7 @@ installation instructions are for Cantera 2.1.1. - Run the installer(s). -6. **Configure Matlab** (optional) +7. **Configure Matlab** (optional) - Set the environment variable ``PYTHON_CMD`` @@ -112,7 +130,7 @@ installation instructions are for Cantera 2.1.1. - Select *Save*, then *Close*. -7. **Test the installation** +8. **Test the installation** - Python::