Setup Python on Windows for Mathematics with NumPy and MatPlotLib

System Check

Know your Windows. Is it 32-bit or 64-bit version?
You can check using System Properties (Press ⊞ + Break)

At System Type, my machine is using 64-bit Windows.

Download

  1. Python 3.5+ from Python Website. Pick the one for your OS (32 or 64 bits).
  2. For NumPy and MatPlotLib, we will skip compiling and building process by using the pre-compile packages from  UC Irvine. Save them in a folder, say "C:\cal1"
    1. NumPy, 
    2. MatPlotLib,

Installation

  1. Double click Python installation file
    1. Click on Add Python 3.x to PATHRelated image
    2. And click Install Now
  2. Open a command-line interface (CLI),
    1. Press  (Windows key) and type cmd, press Enter.
    2. Change your current directory to C:\cal1 (where you saved NumPy and MatPlotLib)
      cd c:\cal1
    3. Run Python Package manager (PIP) to install these packages
      pip install numpy‑1.12.0+mkl‑cp36‑cp36m‑win_amd64.whl
    4. and
      pip install matplotlib‑1.5.3‑cp36‑cp36m‑win_amd64.whl

That's it!

Installation failure could happen due to many reasons. The most common one is typing mistake. Check your spelling for all these commands. Or if you have any questions, drop it in the comment section below.

Comments