To avoid any troubles, install visual studio 2008 if you are using py2.7 or visual studio 2010 if you are using py3. Express edition is enough. Another way is to install Microsoft Visual C++ Compiler for Python 2.7 if you are using Python 2.7.
Go to the following address to download the complied packages:
- Most packages are in wheel format. Download the wheel for your python version and system architecture.
http://www.lfd.uci.edu/~gohlke/pythonlibs/
numpy-MKL
scipy
and place the .exe
file in home directory.
Run the following command in cmd
:
(you should adjust the file names)
virtualenv venv
venv\Scripts\activate.bat
pip install -U setuptools
pip install -U pip
easy_install numpy-MKL.exe
easy_install scipy.exe
pip install matplotlib
pip install PySide
pip install ipython[all]
pip install patsy
pip install pandas
pip install sympy
pip install nose
# others
pip install statsmodels
pip install zipline
pip install quandl
pip install scikit-learn
# create the profile of ipython
ipython profile create
Installation finished.
Next every time want to use the stack, type following in cmd
:
venv\Scripts\activate.bat
ipython qtconsole --matplotlib inline
# ipython
# ipython notebook
Here you go.
Extra Notes on Installing matplotlib
If you want to install matplotlib, you must ensure that you have the correct type of python installed on your machine. eg. If you have 64 bit windows machine, install 64 bit python. Else everytime you import pyplot, you will get dll not found
error.
After you download the matplotlib wheel from gohlke's website, install it as pip install <name of the wheel file>
Since most of the packages by gohlke are in .whl format, you can run pip install <wheel file name>
to install them.
Next go to your system python installation and copy tcl folder. Inside your virtualenv, run pyton and type the following:
import sys
sys.prefix
Paste the tcl folder in your sys.prefix folder. This folder should be the same as your virtualenv folder.
You should be able to use matplotlib now.