Skip to content

Instantly share code, notes, and snippets.

@mp4096
Last active December 18, 2015 16:19
Show Gist options
  • Save mp4096/f9e5ed873bd055e7adc7 to your computer and use it in GitHub Desktop.
Save mp4096/f9e5ed873bd055e7adc7 to your computer and use it in GitHub Desktop.
How to install Python and all other packages on a Windows x86-64 system

Using a precompiled distribution

DIY installation

Installing Python

  • Go to https://www.python.org/downloads/ and download the 3.* or 2.7 version for Win x86-64
  • Install the .exe file
  • Install the libraries of your choice by running pip install <package name> from the cmd.exe. Don't forget to run cmd.exe with administrator rights

Installing numpy and scipy

Since compiling numpy and scipy from sources is not so easy (you'll need to get ATLAS, BLAS, LAPACK and compile them in Cygwin/MinGW), we will use precompiled binaries ('wheel' archives, *.whl) instead.

MATLAB interface

Open command window as administrator and navigate to <matlabroot>\extern\engines\python. Then, execute python setup.py install.

See MathWorks documentation for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment