Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
[]$ module purge
[]$ module load miniconda3/24.3.0
[]$ conda activate /project/<project-name>/<username>/conda/py_env
(/project/<project-name>/<username>/conda/py_env) []$ pip list -v
Package                 Version     Location                                                         Installer
----------------------- ----------- ---------------------------------------------------------------- ---------
...
numpy                   2.0.0       /home/<username>/.local/lib/python3.12/site-packages               pip
...

(/project/<project-name>/<username>/conda/py_env) []$ export PYTHONUSERBASE=$CONDA_PREFIX
(/project/<project-name>/<username>/conda/py_env) []$ pip list -v
Package                 Version  Location                                                         Installer
----------------------- -------- ---------------------------------------------------------------- ---------
...
numpy                   2.0.0    /project/<project-name>/<username>/conda/py_env/lib/python3.12/site-packages pip
...

...

Remember: Conda Environments, Pip Installs and Package Locations

Info

Remember: If you do not set export PYTHONUSERBASE=$CONDA_PREFIX (after the Conda environment has been activated), then pip install will place Python packages under ~/.local/lib/pythonX.Y/site-packages.

...

...