The version described here is no longer supported.
These instructions will install the required packages only in a virtualenv. This can help when you don’t have root access or are on a shared machine. Additionally, it will help when you have several packages with conflicting dependencies, or those that occupy the same namespace (such as pyNN.spiNNaker if you have an older version of the toolchain).
The installation of virtualenv and the linking to the external libraries is platform dependent.
- Ubuntu Virtualenv Installation
- 32-bit Fedora Virtualenv Installation
- 64-bit Fedora Virtualenv Installation
- Mac OS X Virtualenv Installation
- Windows Virtualenv Installation
Ubuntu Virtualenv Installation
- Install virtualenv
sudo pip install virtualenv
- Create a virtualenv;
<name>
in the following can be replaced by the name of your choice
virtualenv <name>
- Activate the virtualenv
source <name>/bin/activate
- Link numpy to the virtualenv
ln -s /usr/lib/python2.7/dist-packages/numpy* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Link scipy to the virtualenv
ln -s /usr/lib/python2.7/dist-packages/scipy* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Link lxml to the virtualenv
ln -s /usr/lib/python2.7/dist-packages/lxml* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Optional: link matplotlib to the virtualenv and install dependencies (only if you chose to install matplotlib)
pip install python-dateutil
pip install pyparsing
pip install six
ln -s /usr/lib/pymodules/python2.7/matplotlib $VIRTUAL_ENV/lib/python2.7/site-packages/
ln -s /usr/lib/pymodules/python2.7/pylab.py $VIRTUAL_ENV/lib/python2.7/site-packages/
32-bit Fedora Virtualenv Installation
- Install virtualenv
sudo pip install virtualenv
- Create a virtualenv;
<name>
in the following can be replaced by the name of your choice
virtualenv <name>
- Activate the virtualenv
source <name>/bin/activate
- Link numpy to the virtualenv
ln -s /usr/lib/python2.7/site-packages/numpy* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Link scipy to the virtualenv
ln -s /usr/lib/python2.7/site-packages/scipy* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Link lxml to the virtualenv
ln -s /usr/lib/python2.7/site-packages/lxml* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Optional: link matplotlib to the virtualenv and install dependencies (only if you chose to install matplotlib)
pip install python-dateutil
pip install pyparsing
pip install six
ln -s /usr/lib/python2.7/site-packages/matplotlib $VIRTUAL_ENV/lib/python2.7/site-packages/
ln -s /usr/lib/python2.7/site-packages/pylab.py $VIRTUAL_ENV/lib/python2.7/site-packages/
64-bit Fedora Virtualenv Installation
- Install virtualenv
sudo pip install virtualenv
- Create a virtualenv;
<name>
in the following can be replaced by the name of your choice
virtualenv <name>
- Activate the virtualenv
source <name>/bin/activate
- Link numpy to the virtualenv
ln -s /usr/lib64/python2.7/site-packages/numpy* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Link scipy to the virtualenv
ln -s /usr/lib64/python2.7/site-packages/scipy* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Link lxml to the virtualenv
ln -s /usr/lib64/python2.7/site-packages/lxml* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Optional: link matplotlib to the virtualenv and install dependencies (only if you chose to install matplotlib)
pip install python-dateutil
pip install pyparsing
pip install six
ln -s /usr/lib64/python2.7/site-packages/matplotlib $VIRTUAL_ENV/lib/python2.7/site-packages/
ln -s /usr/lib64/python2.7/site-packages/pylab.py $VIRTUAL_ENV/lib/python2.7/site-packages/
Mac OS X Virtualenv Installation
- Install virtualenv
sudo pip install virtualenv
- Create a virtualenv;
<name>
in the following can be replaced by the name of your choice
virtualenv <name>
- Activate the virtualenv
source <name>/bin/activate
- Link numpy to the virtualenv
ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Link scipy to the virtualenv
ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Link lxml to the virtualenv
ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lxml* $VIRTUAL_ENV/lib/python2.7/site-packages/
- Optional: link matplotlib to the virtualenv and install dependencies (only if you chose to install matplotlib)
pip install python-dateutil
pip install pyparsing
pip install six
ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib $VIRTUAL_ENV/lib/python2.7/site-packages/
ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pylab.py $VIRTUAL_ENV/lib/python2.7/site-packages/
Windows Virtualenv Installation
- Open a console as administrator and cd to your home directory
cd %HOMEPATH%
- Install virtualenv
pip install virtualenv
- Create a virtualenv;
<name>
in the following can be replaced by the name of your choice
virtualenv <name>
- Activate the virtualenv
<name>\Scripts\activate.bat
- Link numpy to the virtualenv
mklink /D %VIRTUAL_ENV%\Lib\site-packages\numpy C:\Python27\Lib\site-packages\numpy
mklink %VIRTUAL_ENV%\Lib\site-packages\numpy-1.9.1-py2.7.egg-info C:\Python27\site-packages\numpy-1.9.1-py2.7.egg-info
- Link scipy to the virtualenv
mklink /D %VIRTUAL_ENV%\Lib\site-packages\scipy C:\Python27\Lib\site-packages\scipy
mklink %VIRTUAL_ENV%\Lib\site-packages\scipy-0.14.1rc1-py2.7.egg-info C:\Python27\site-packages\scipy-0.14.1rc1-py2.7.egg-info
- Link lxml to the virtualenv
mklink /D %VIRTUAL_ENV%\Lib\site-packages\lxml C:\Python27\Lib\site-packages\lxml
mklink /D %VIRTUAL_ENV%\Lib\site-packages\lxml-3.4.1-py2.7.egg-info C:\Python27\site-packages\lxml-3.4.1-py2.7.egg-info
- Optional: link matplotlib to the virtualenv and install dependencies (only if you chose to install matplotlib)
pip install python-dateutil
pip install pyparsing
pip install six
mklink /D %VIRTUAL_ENV%\Lib\site-packages\matplotlib C:\Python27\Lib\site-packages\matplotlib
mklink %VIRTUAL_ENV%\Lib\site-packages\pylab.py C:\Python27\Lib\site-packages\pylab.py
- Optional: To make matplotlib work within a virtualenv, create the following environment variables:
TCL_LIBRARY: C:\Python27\tcl\tcl8.5
TK_LIBRARY: C:\Python27\tcl\tk8.5