Difference between revisions of "Enabling modules"
Miguel Caro (talk | contribs) (Created page with "To avoid having to install specialized software on your Aalto machine, we make some programs available over the Aalto network via a module. To use them, you may need to updat...") |
Miguel Caro (talk | contribs) |
||
| Line 6: | Line 6: | ||
pkcon update | pkcon update | ||
pkcon install python3-numpy python3-scipy gfortran dh-autoreconf \ | pkcon install python3-numpy python3-scipy gfortran dh-autoreconf \ | ||
| − | tcl-dev libblas-dev liblapack-dev python3-pip gnuplot | + | tcl-dev libblas-dev liblapack-dev python3-pip gnuplot |
| + | # The Numpy version that is distributed with Ubuntu's official repo is too old; update it | ||
| + | pip3 install --upgrade numpy | ||
| + | pip3 install --upgrade scipy | ||
| + | |||
| + | <code>pip3</code> will add some binaries to <code>~/.local/bin</code>. Make sure to add it to your path by adding this line to your <code>~/.bashrc</code> file: | ||
| + | |||
| + | export PATH="~/.local/bin":$PATH | ||
Then, you need to make your shell aware of the modules system. Put these two lines in your <code>~/.bashrc</code> file: | Then, you need to make your shell aware of the modules system. Put these two lines in your <code>~/.bashrc</code> file: | ||
| Line 13: | Line 20: | ||
export MODULEPATH=/m/work/t410/unix/caro/modulefiles | export MODULEPATH=/m/work/t410/unix/caro/modulefiles | ||
| − | To make the changes available immediately, you need to do <code>source ~/.bashrc</code>. | + | To make the changes available immediately, you need to do <code>source ~/.bashrc</code>. But next time you open a fresh terminal you don't need to source this file anymore. |
To show the list of available modules, you can type <code>module avail</code>. | To show the list of available modules, you can type <code>module avail</code>. | ||
Revision as of 18:42, 2 September 2021
To avoid having to install specialized software on your Aalto machine, we make some programs available over the Aalto network via a module.
To use them, you may need to update the packages in your Ubuntu system. You can use pkcon install ... for that. In a terminal, do:
# Update your system; this is a list of suggested packages:
pkcon update
pkcon install python3-numpy python3-scipy gfortran dh-autoreconf \
tcl-dev libblas-dev liblapack-dev python3-pip gnuplot
# The Numpy version that is distributed with Ubuntu's official repo is too old; update it
pip3 install --upgrade numpy
pip3 install --upgrade scipy
pip3 will add some binaries to ~/.local/bin. Make sure to add it to your path by adding this line to your ~/.bashrc file:
export PATH="~/.local/bin":$PATH
Then, you need to make your shell aware of the modules system. Put these two lines in your ~/.bashrc file:
source /m/work/t410/unix/caro/apps/environment-modules/environment_modules_4.8.0/init/profile.sh export MODULEPATH=/m/work/t410/unix/caro/modulefiles
To make the changes available immediately, you need to do source ~/.bashrc. But next time you open a fresh terminal you don't need to source this file anymore.
To show the list of available modules, you can type module avail.
An example of how to use the modules to use ASE:
module load ase/3.22.0
The command above will give you access to the ase command and also to the ASE Python libraries.