Installing software packages locally with Anaconda

Audience: Faculty, Postdocs, Researchers, Staff and Students

This KB Article References: High Performance Computing
This Information is Intended for: Faculty, Postdocs, Researchers, Staff, Students
Last Updated: September 21, 2022
Average Rating: Not Rated
Your feedback is important to us, help us by logging in to rate this article and provide feedback.

When HPC users have need of software that is not currently installed on SeaWulf, there are two basic approaches that can be taken to get the programs installed:

1. You are welcome to submit a ticket and ask the HPC support staff to install the software package.  This may be preferable if the program is widely used and likely to be of interest to multiple users.  

2.  Alternatively, you may install the program locally in your home or project directory.  The easiest way to install many software packages is by using the Anaconda package manager.  First load the appropriate module (either Anaconda2 or Anaconda3, depending on which version of Python is desired):

module load anaconda/2

In order to ensure that there is no conflict between the software you'd like to install and existing programs (e.g., dependency version conflicts), it's best to create a custom Anaconda environment.

Note: You can't combine the --prefix and --name flags, you may only choose one.

To create the environment:

conda create --name env-name

Which will save as (by default)

/gpfs/home/NETID/.conda/envs/env-name

if you wish to save in another directory:

conda create --prefix /path-to-env/env-name

Which will save as

/path-to-env/env-name

Once you've created a custom environment, you need to "activate" it with the following:

source activate env-name

By doing this, the environmental variables  associated with your custom Anaconda environment (including the path to executable files) will become active.  

From here, you may install packages using the "conda install" command.  For example, if you would like to install the "scipy" package, type the following:

conda install scipy

After the package has been installed, any associated executable files will be placed within a bin folder in your environment directory (this is automatically added to your path):

.../env-name/bin/

Likewise, the directory system for any libraries installed with conda can be found at:

.../env-name/lib/

Once you're done installing and using your Anaconda packages, you may return to the default environment by typing:

conda deactivate

To read more about installing and managing environments with Anaconda, please see the conda documentation.  

SUBMIT A TICKET

Additional Information


There are no additional resources available for this article.

Provide Feedback


Your feedback is important to us, help us by logging in to rate this article and provide feedback.

Sign in with NetID

Getting Help


The Division of Information Technology provides support on all of our services. If you require assistance please submit a support ticket through the IT Service Management system.

Submit A Quick Ticket

For More Information Contact


IACS Support System