Warning:  Due to planned infrastructure maintenance, the EBRAINS Wiki and EBRAINS Support system will be unavailable for up to three days starting Monday, 14 July. During this period, both services will be inaccessible, and any emails sent to the support address will not be received.

Attention: We are currently experiencing some issues with the EBRAINS Drive. Please bear with us as we fix this issue. We apologise for any inconvenience caused.


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

From version 54.1
edited by shailesh
on 2022/01/31 15:52
Change comment: There is no comment for this version
To version 60.1
edited by adavison
on 2022/10/04 13:53
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.shailesh
1 +XWiki.adavison
Content
... ... @@ -1,3 +1,8 @@
1 +(% class="box successmessage" %)
2 +(((
3 +Video: [[https:~~/~~/www.youtube.com/watch?v=BZB7xKUK8Vc>>https://www.youtube.com/watch?v=BZB7xKUK8Vc]]
4 +)))
5 +
1 1  == Learning objectives ==
2 2  
3 3  In this tutorial, you will learn how to install PyNN, together with the Brian 2, NEST and NEURON simulators, on Linux.
... ... @@ -4,7 +4,7 @@
4 4  
5 5  (% class="box infomessage" %)
6 6  (((
7 -Note: There will be a separate tutorial for each environment.
12 +Note: We are preparing tutorials for Windows and Mac OS
8 8  )))
9 9  
10 10  == Audience ==
... ... @@ -69,22 +69,24 @@
69 69  cd pynn_project
70 70  )))
71 71  
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.
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':
73 73  
74 -(% class="box errormessage" %)
79 +(% class="box infomessage" %)
75 75  (((
76 -**Note**
81 +**Screencast** - terminal
77 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.
83 +(% style="color:#000000" %)
84 +sudo apt-get install python3-venv
82 82  )))
83 83  
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 +
84 84  (% class="box infomessage" %)
85 85  (((
86 86  **Screencast** - terminal
87 -\\(% style="color:#000000" %)python3 -m venv pynn_env
92 +
93 +(% style="color:#000000" %)
94 +python3 -m venv pynn_env
88 88  )))
89 89  
90 90  (% class="box warningmessage" %)