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

From version 22.7
edited by shailesh
on 2021/10/06 15:56
Change comment: There is no comment for this version
To version 22.14
edited by shailesh
on 2021/10/07 14:02
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -56,7 +56,7 @@
56 56  **Slide** listing prerequisites
57 57  )))
58 58  
59 -I shall be demonstrating the installation on a computer with Ubuntu 18.04 OS installed. The steps are likely to remain very similar for other versions of Ubuntu OS, and also not expected to vary significantly for other Linux distributions. In the latter case, you will find on the Internet about how to carry out the equivalent of the tasks demonstrated here using Ubuntu OS. Also, the tutorial will focus only on Python 3, as Python 2 has now been deprecated. It is recommended to use Python version 3.6 or higher. I would be using Python 3.9.7 in this tutorial.
59 +I shall be demonstrating 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 also not expected to vary significantly for other Linux distributions. In the latter case, you will find on the Internet about how to carry out the equivalent of the tasks demonstrated here using Ubuntu OS. Also, the tutorial will focus only on Python 3, as Python 2 has now been deprecated. It is recommended to use Python version 3.6 or higher. I would be using Python 3.9.7 in this tutorial.
60 60  
61 61  (% class="box infomessage" %)
62 62  (((
... ... @@ -77,10 +77,18 @@
77 77  
78 78  Next we shall create a virtual environment within this directory. Python 3 provides intrinsic support for creating virtual environments. Since Python 3.6, the recommended method of creating a new virtual environment is as follows:
79 79  
80 +(% class="box errormessage" %)
81 +(((
82 +**Note:**
83 +For older versions of Python 3, you might require to manually install `python3-venv` package before being able to run the below command. To install, run:
84 +\\sudo apt-get install python3-venv
85 +\\More recent versions of Python 3 (e.g. v3.9) already have this pre-installed.
86 +)))
87 +
80 80  (% class="box infomessage" %)
81 81  (((
82 82  **Screencast** - terminal
83 -\\(% style="color:#000000" %)python -m venv pynn_env
91 +\\(% style="color:#000000" %)python3 -m venv pynn_env
84 84  )))
85 85  
86 86  This will create a sub-directory named 'pynn_env' within our project directory, with several files and sub-directories. Let us take a look at the 'site-packages' directory.
... ... @@ -113,7 +113,7 @@
113 113  \\(% style="color:#000000" %)pip install brian2
114 114  )))
115 115  
116 -This will install Brian2, along with all its dependencies such as 'cython', 'numpy', etc. We can now go back into our virtual environment's 'site-packages' directory to see how it is now populated with all these packages.
124 +This will install Brian2, along with all its dependencies such as 'cython', 'numpy', etc. We can now go back into our virtual environment's 'site-packages' directory to see how it is now populated with all these packages.
117 117  
118 118  (% class="box infomessage" %)
119 119  (((