rsnt_translations
56,420
edits
(Marked this version for translation) |
No edit summary |
||
Line 17: | Line 17: | ||
When you log into our clusters, a default Python version will be available, but that is generally not the one that you should use, especially if you need to install any Python packages. You should try to find out which version of Python is required to run your Python programs and load the appropriate [[Utiliser des modules/en | module]]. If you are not sure which version you need, then it is reasonable to use the latest version available. | When you log into our clusters, a default Python version will be available, but that is generally not the one that you should use, especially if you need to install any Python packages. You should try to find out which version of Python is required to run your Python programs and load the appropriate [[Utiliser des modules/en | module]]. If you are not sure which version you need, then it is reasonable to use the latest version available. | ||
===Loading Python | ===Loading a Python module=== <!--T:5--> | ||
To discover the versions of Python available: | To discover the versions of Python available: | ||
{{Command|module avail python}} | {{Command|module avail python}} | ||
Line 53: | Line 53: | ||
<!--T:9--> | <!--T:9--> | ||
To create a virtual environment, | To create a virtual environment, make sure you have selected a Python version with <tt>module load python</tt> as shown above in section ''Loading a Python module''. If you expect to use any of the packages listed in section ''SciPy stack'' above, also run <tt>module load scipy-stack</tt>. Then enter the following command, where <tt>ENV</tt> is the name of the directory for your new environment: | ||
{{Command|virtualenv --no-download ENV}} | {{Command|virtualenv --no-download ENV}} | ||