$ module load python-cbrg
If you want to see the full list of installed packages, load the module as above and then run the command:
$ pip list | lessPlease note, however, that this command will take some time to run and the output will be rather long.
$ module load python-cbrg # (or python-base) $ PYTHONUSERBASE=/project/example/user/my-python python -m pip install --user PKGIf PIP is missing then run:
$ PYTHONUSERBASE=/project/example/user/my-python python -m ensurepip --userThen to import in Jupyter, add to top of notebook:
import sys; sys.path.insert(0, '/project/example/user/my-python/lib/python3.11/site-packages')
During Conda install you are asked whether to "update your shell profile to automatically initialize conda". You should decline this, preventing your SSH logins being delayed by Conda. You can manually activate Conda with:
$ . path/to/your/Conda/install/bin/activateAlso, do not run
$ conda initas this will add automatic initialization to your .bashrc. If you have already added automatic initialization to your .bashrc file, then disable simply by deleting or relocating the clearly-marked Conda block from your .bashrc.
Cleaning old packages or regenerating the index cache can speedup activation:
$ conda clean --packages $ conda clean --index-cacheDisabling automatic update can speedup environment creation and new package installs. To disable, put the following in file ~/.condarc:
auto_update_conda: falseYou can manually update with:
$ conda update --all && conda update conda
python-base contains fixed, unchanging installations of the base languages. This is for safety; they cannot be accidentally overwritten causing unexpected changes of behaviour. python-cbrg contains separate package and library repositories for each version of Python. Because packages and library versions also change over time, we take a snapshot of the state every 3 months and then lock this to prevent changes causing unexpected behaviour. A single current version for each provides a continual rolling 'head' where changes are applied. Loading the python-cbrg module will automatically pull in the latest stable base and all packages or libraries:
$ module load python-cbrg Loading python-cbrg/current Loading requirement: python-base/3.8.3 $ module list Currently Loaded Modulefiles: 1) python-base/3.8.3(default) 2) python-cbrg/current(default)
However, if you want to use a different version of the base, you can do that by loading it manually first:
$ module load python-base/3.6.10 $ module load python-cbrg $ module list Currently Loaded Modulefiles: 1) python-base/3.6.10 2) python-cbrg/current(default)
Simmilarly, if you want to use a different version of the libraries, for example because a recent update broke something you relied on, you can do that by loading it manually:
$ module load python-cbrg/202104 Loading python-cbrg/202104 Loading requirement: python-base/3.8.3 $ module list Currently Loaded Modulefiles: 1) python-base/3.8.3(default) 2) python-cbrg/202104