

- #Conda install package without removing others how to#
- #Conda install package without removing others software#
All three packages would be installed as part of the environment’s creation. In this case, you would execute the command displayed in Figure 3.2. Consider a new environment in the py2_env directory that should have Python 2.7, NumPy, and SciPy installed. To do this, specify the packages after the environment’s path. Only create Conda environments in directories to which you have access such as your home directory or Lustre scratch space.Ĭonda permits you to install packages when you create an environment. Always verify that the directory you specify is the correct one before you create the environment. For instance, to create an environment in a directory named basic_env, you would execute conda create -p ~/basic_env. conda create -p įigure 3.1 – Creating an Environment in Anaconda To create a basic environment with no packages, execute the command shown in Figure 3.1. In Anaconda, an environment is an isolated space where packages and dependencies can be installed without affecting other environments. You should be able to activate the base environment with the conda activate command. Test the changes to your environment by logging out of the cluster and logging back in. echo “module load anaconda3/5.1.0” > ~/.bashrcįigure 2.2 – Automating Anaconda’s Loading Process Also ensure that you use two greater than (>) symbols. bashrc file after you modify it to ensure that it was correctly changed. For instance, to automate the configuration of Anaconda 3 version 5.1.0, review the example in Figure 2.2. You may use the echo command with redirection to insert the script path into your. bashrc file and then insert the path to the script into the file. To automate the configuration process, add module load to your. source $ANACONDA2_SHįigure 2.1 – Executing the Anaconda Setup Script Replace the “2” with “3” if you use the Anaconda 3 distribution.

#Conda install package without removing others how to#
Figure 2.1 shows how to execute this script for the Anaconda 2 distribution. The name of the environment variable is ANACONDA2_SH for the Anaconda 2 distribution and ANACONDA3_SH for the Anaconda 3 distribution. An environment variable defines the path to this script. To configure your shell to use Conda, execute Conda’s setup script. The term “default” will appear in parentheses next to the module. To determine which version is the default, review the output of module avail anaconda. The default version for that Anaconda distribution will be loaded. If you do not require a specific version of Anaconda, you should execute the same command but exclude the version number. For example, to load Anaconda 2 version 4.3.1, execute module load anaconda2/4.3.1. Replace with the necessary distribution and version number. To load the appropriate Anaconda module, execute module load. They should indicate which distribution and version you should use.
#Conda install package without removing others software#
If you are unsure which distribution and version to use, review the documentation for the software package(s) you require. To verify which versions are installed on the cluster, execute module avail anaconda. At the time of this writing, five versions of Anaconda are installed on the cluster. Loading AnacondaĪnaconda is a loadable module on the cluster. In this guide, you will learn how to use Conda for your projects on the cluster.

It takes care of the tedious tasks related to packages and their dependencies so that you can focus on your work. Originally designed for Python, Conda can handle nearly any programming language with ease. Conda is Anaconda’s package, dependency, and environment management solution. OIT News: High Performance & Scientific ComputingĪnaconda is a popular data science platform used in a wide variety of fields.
