hpc:applications_and_libraries
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| hpc:applications_and_libraries [2025/04/24 09:03] – [RStudio] Yann Sagon | hpc:applications_and_libraries [2025/11/04 09:48] (current) – [Custom Python lib] Yann Sagon | ||
|---|---|---|---|
| Line 1091: | Line 1091: | ||
| ==== Custom Python lib ==== | ==== Custom Python lib ==== | ||
| - | If you need to install a python | + | If you need to install a Python |
| - | Python-virtualenv is installed on Baobab http:// | + | Python-virtualenv is installed on Baobab: http:// |
| - | Begin by loading a version of python | + | Begin by loading a version of Python |
| - | Create a new virtualenv if it's not already existing (put it where you want and name it like you want): | + | Before creating your virtual environment, |
| + | You must load **Python** | ||
| - | For '' | + | < |
| - | capello@login2: | + | ml GCC/ |
| </ | </ | ||
| - | For previous | + | Create a new virtual environment (you can choose the location and name). |
| - | capello@login2: | + | <WRAP center round tip 60%> |
| + | It is recommended to use the option | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | virtualenv --system-site-packages ~/ | ||
| </ | </ | ||
| - | This will create a directory named baobab_python_env in your home directory. | + | This will create a directory named **baobab_python_env** in your home directory. |
| - | Every time you want to use your virtualenv, you should activate it first: | + | Every time you want to use your virtual environment, you should activate it first: |
| < | < | ||
| . ~/ | . ~/ | ||
| </ | </ | ||
| + | |||
| + | <WRAP center round important 60%> | ||
| + | Before reusing this virtual environment, | ||
| + | </ | ||
| + | |||
| Install all the needed packages in the environment: | Install all the needed packages in the environment: | ||
| Line 1126: | Line 1137: | ||
| ~/ | ~/ | ||
| </ | </ | ||
| - | |||
| ==== Pip install from source ==== | ==== Pip install from source ==== | ||
| By default when you use '' | By default when you use '' | ||
hpc/applications_and_libraries.1745485426.txt.gz · Last modified: (external edit)