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).
Installation on non-Windows
To install and create a virtualenv on any platform other than Windows:
-
Install virtualenv:
sudo pip install virtualenv
-
Create a virtualenv;
<name>
in the following can be replaced by the name of your choicevirtualenv <name>
-
Activate the virtualenv:
source <name>/bin/activate
Installation on Windows
On Windows, the instructions are similar, but subtly different:
-
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 choicevirtualenv <name>
-
Activate the virtualenv
<name>\Scripts\activate.bat
-
Optional: To make matplotlib work within a virtualenv, create the following environment variables:
TCL_LIBRARY: C:\Python38\tcl\tcl8.6 TK_LIBRARY: C:\Python38\tcl\tk8.6