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

From version 59.1
edited by adavison
on 2022/05/10 14:26
Change comment: There is no comment for this version
To version 53.1
edited by shailesh
on 2022/01/31 15:12
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.adavison
1 +XWiki.shailesh
Content
... ... @@ -1,8 +6,3 @@
1 -(% class="box successmessage" %)
2 -(((
3 -Video: [[https:~~/~~/www.youtube.com/watch?v=Ui8_I9T0UcU>>https://www.youtube.com/watch?v=Ui8_I9T0UcU]]
4 -)))
5 -
6 6  == Learning objectives ==
7 7  
8 8  In this tutorial, you will learn how to install PyNN, together with the Brian 2, NEST and NEURON simulators, on Linux.
... ... @@ -49,7 +49,7 @@
49 49  **Slide** listing prerequisites
50 50  )))
51 51  
52 -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.
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 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.
53 53  
54 54  (% class="box errormessage" %)
55 55  (((
... ... @@ -74,24 +74,22 @@
74 74  cd pynn_project
75 75  )))
76 76  
77 -Next, we will create a virtual environment within this directory. Python 3 provides support for creating virtual environments. To use this, we first install the package named 'python3-venv':
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.
78 78  
79 -(% class="box infomessage" %)
74 +(% class="box errormessage" %)
80 80  (((
81 -**Screencast** - terminal
76 +**Note**
82 82  
83 -(% style="color:#000000" %)
84 -sudo apt-get install python3-venv
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.
85 85  )))
86 86  
87 -And once this is installed, we can create a new virtual environment by typing 'python3', '-m venv' to indicate the name module of the module we just installed, followed by the name we wish to assign to our virtual environment. Here, we have set this to 'pynn_env'.
88 -
89 89  (% class="box infomessage" %)
90 90  (((
91 91  **Screencast** - terminal
92 -
93 -(% style="color:#000000" %)
94 -python3 -m venv pynn_env
87 +\\(% style="color:#000000" %)python3 -m venv pynn_env
95 95  )))
96 96  
97 97  (% class="box warningmessage" %)