@@ -7,7 +7,7 @@ install and run PyNN on Windows, but this has not been tested.
77
88Installing PyNN requires:
99
10- * Python (version 3.7 +)
10+ * Python (version 3.8 +)
1111 * a recent version of the NumPy_ package
1212 * the lazyarray_ package
1313 * the Neo_ package (>= 0.11.0)
@@ -32,9 +32,8 @@ The easiest way to get PyNN is to use pip_::
3232If you would prefer to install manually, :doc:`download the latest
3333source distribution <download>`, then run the setup script, e.g.::
3434
35- $ tar xzf PyNN-0.10.1.tar.gz
36- $ cd PyNN-0.10.1
37- $ python setup.py install
35+ $ tar xzf PyNN-0.11.0.tar.gz
36+ $ pip install ./PyNN-0.11.0
3837
3938This will install it to your Python :file:`site-packages` directory, and may
4039require root privileges. We strongly recommend, however, that you use a
@@ -55,30 +54,25 @@ Test it using something like the following::
5554 If you get a warning "Unable to install NEST extensions. Certain models may not be available" then ensure the
5655 program :command:`nest-config` is on your system PATH.
5756 If you still get this message even after adding the directory containing :command:`nest-config` to the PATH,
58- try ``pip uninstall PyNN``, then re-install with ``pip install --no-binary :all: PyNN``
57+ then you will still be able to use pyNN.nest, just a small number of models will not be available.
5958
60- With NEURON as the simulator, make sure you install NEURON *before* you install PyNN.
61- The PyNN installation will then compile PyNN-specific membrane mechanisms, which are loaded when importing the :mod:`neuron` module::
59+ For NEURON, PyNN will compile PyNN-specific membrane mechanisms the first time you import the :mod:`neuron` module::
6260
6361 >>> import pyNN.neuron as sim
64- NEURON -- Release 7.4 (1370:16a7055d4a86) 2015-11-09
65- Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
66- See http://www.neuron.yale.edu/neuron/credits
67-
68- loading membrane mechanisms from /home/docker/dev/PyNN/pyNN/neuron/nmodl/x86_64/.libs/libnrnmech.so
69- Additional mechanisms from files
70- adexp.mod alphaisyn.mod alphasyn.mod expisyn.mod gap.mod gsfa_grr.mod hh_traub.mod
71- izhikevich.mod netstim2.mod refrac.mod reset.mod stdwa_guetig.mod stdwa_softlimits.mod
72- stdwa_songabbott.mod stdwa_symm.mod stdwa_vogels2011.mod tmgsyn.mod tmisyn.mod
73- tsodyksmarkram.mod vecstim.mod
7462
75- If you installed PyNN before installing NEURON, or if you update your PyNN installation,
76- you will need to manually run :command:`nrnivmodl` in the :file:`pyNN/neuron/nmodl` directory.
7763
7864Installing NEURON
7965=================
8066
81- Download the sources for NEURON 7.4 or later, in ``.tar.gz`` format, from `<http://www.neuron.yale.edu/neuron/download/getstd>`_.
67+ For recent versions of NEURON,
68+
69+ ::
70+
71+ $ pip install neuron
72+
73+ may be all you need. If you have more complex needs, try the following.
74+
75+ Download the sources for NEURON 8.0 or later, in ``.tar.gz`` format, from `<http://www.neuron.yale.edu/neuron/download/getstd>`_.
8276Also download Interviews from the same location.
8377
8478Compile Interviews and NEURON according to the instructions given at `<http://www.neuron.yale.edu/neuron/static/download/compilestd_unix.html>`_,
@@ -92,9 +86,9 @@ Make sure that you add the Interviews and NEURON :file:`bin` directories to your
9286Test that the Python support has been enabled by running::
9387
9488 $ nrniv -python
95- NEURON -- Release 7.4 (1370:16a7055d4a86) 2015-11-09
96- Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
97- See http://www. neuron.yale.edu/neuron/credits
89+ NEURON -- VERSION 8.2.2 release/8.2 (93d41fafd) 2022-12-15
90+ Duke, Yale, and the BlueBrain Project -- Copyright 1984-2022
91+ See http://neuron.yale.edu/neuron/credits
9892
9993 >>> import hoc
10094 >>> import nrn
@@ -108,35 +102,31 @@ Now test everything worked::
108102
109103 $ python
110104 >>> import neuron
111- NEURON -- Release 7.4 (1370:16a7055d4a86) 2015-11-09
112- Duke, Yale, and the BlueBrain Project -- Copyright 1984-2015
113- See http://www.neuron.yale.edu/neuron/credits
114105
115106If you run into problems, check out the `NEURON Forum`_.
116107
117108
118109Installing NEST and PyNEST
119110==========================
120111
121- NEST 2.18.0 can be downloaded from `<http://www.nest-simulator.org/download/>`_.
112+ NEST 3.4 can be downloaded from `<http://www.nest-simulator.org/download/>`_.
122113Earlier versions of NEST may not work with this version of PyNN.
123- The full installation instructions are available in the file INSTALL, which you can find in the NEST source package,
124- or at `<http://www.nest-simulator.org/installation/>`_.
114+ The full installation instructions are available at `<https://nest-simulator.readthedocs.io/en/v3.4/installation/index.html/>`_.
125115
126116Now try it out::
127117
128118 $ cd ~
129119 $ python
130120 >>> import nest
131- -- N E S T --
132- Copyright (C) 2004 The NEST Initiative
133121
134- Version: v2.20.0
122+ -- N E S T --
123+ Copyright (C) 2004 The NEST Initiative
135124
125+ Version: 3.4
136126 ...
137- >>> nest.Models()
138- (u'ac_generator', u'aeif_cond_alpha', u'aeif_cond_alpha_RK5', u'aeif_cond_alpha_multisynapse',
139- ...
127+
128+ >>> nest.node_models
129+ ('weight_recorder', 'gauss_rate_ipn', 'lin_rate_ipn', 'sigmoid_rate_ipn', 'sigmoid_rate_gg_1998_ipn', 'tanh_rate_ipn', ...)
140130
141131Check that ``'aeif_cond_alpha'`` is in the list of models. If it is not, you may need to install a newer version of the `GNU Scientific Library`_ and then recompile NEST.
142132
0 commit comments