Last modified by adavison on 2022/10/04 13:53

From version 49.1
edited by shailesh
on 2021/12/09 17:19
Change comment: There is no comment for this version
To version 55.1
edited by shailesh
on 2022/01/31 15:56
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -44,7 +44,7 @@
44 44  **Slide** listing prerequisites
45 45  )))
46 46  
47 -I will demonstrate the installation on a computer with Ubuntu 20.04 OS installed. The steps are likely to remain very similar for other versions of Ubuntu OS and are also not expected to vary significantly for other Linux distributions. In the latter case, you can find information on the Internet about how to carry out the equivalent of the tasks demonstrated here using Ubuntu OS. Also, this tutorial focuses only on Python 3, because Python 2 has now been deprecated. It is recommended to use Python version 3.6 or higher. I will be using Python 3.8.10 in this tutorial, because it is the default version provided with Ubuntu 20.04.
47 +I will demonstrate the installation on a computer with Ubuntu 20.04 OS installed. The steps are likely to remain very similar for other versions of Ubuntu OS and are also not expected to vary significantly for other Linux distributions. In the latter case, you can find information on the Internet about how to carry out the equivalent of the tasks demonstrated here. Also, this tutorial focuses only on Python 3, because Python 2 is no longer supported. It is recommended to use Python version 3.6 or higher. I will be using Python 3.8.10 in this tutorial, because it is the default version provided with Ubuntu 20.04.
48 48  
49 49  (% class="box errormessage" %)
50 50  (((
... ... @@ -71,20 +71,13 @@
71 71  
72 72  Next, we will create a virtual environment within this directory. Python 3 provides support for creating virtual environments. Since Python 3.6, the recommended method for creating a new virtual environment is as follows.
73 73  
74 -(% class="box errormessage" %)
75 -(((
76 -**Note**
77 -
78 -
79 -For older versions of Python 3, you might be required to manually install `python3-venv` package before being able to run the below command. To install, run:
80 -\\sudo apt-get install python3-venv
81 -\\More recent versions of Python 3 (e.g., v3.9) already have this pre-installed.
82 -)))
83 -
84 84  (% class="box infomessage" %)
85 85  (((
86 86  **Screencast** - terminal
87 -\\(% style="color:#000000" %)python3 -m venv pynn_env
77 +
78 +(% style="color:#000000" %)
79 +sudo apt-get install python3-venv
80 +python3 -m venv pynn_env
88 88  )))
89 89  
90 90  (% class="box warningmessage" %)
... ... @@ -133,8 +133,6 @@
133 133  sudo apt install make
134 134  )))
135 135  
136 -
137 -
138 138  Now that we have our project's virtual environment setup, we are ready to install PyNN and other simulators. In general, it is advisable to install the various simulators (especially NEURON and NEST) prior to installing PyNN, because PyNN will then auto compile NEURON's NMODL fles and NEST's extensions during installation. In this tutorial, we will adopt this approach and begin by installing the simulators. For the purposes of this tutorial, we will demonstrate the installation of Brian2, NEST, and NEURON simulators.
139 139  
140 140  (% class="box errormessage" %)
... ... @@ -218,7 +218,7 @@
218 218  
219 219  If there are no error messages here, and the import is successful, we have completed installing NEST simulator and are able to load it via Python.
220 220  
221 -We next move on to the third simulator, NEURON. The installation for NEURON used to be more complex but can now be easily completed by using the 'pip' command.
212 +We next move on to the third simulator, NEURON. Similar to Brian2, the installation for NEURON can be easily done via the 'pip' command. Do note that this method of installation does not auto-enable MPI support, which would be required for running simulations in parallel. Do visit the NEURON website if you wish to install on clusters or HPC machines.
222 222  
223 223  (% class="box infomessage" %)
224 224  (((