Skip to content

Commit

Permalink
Update 2023-09-25-Eddie.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Demi-wlw committed Jan 28, 2024
1 parent 73fb065 commit 6eff9d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _posts/2023-09-25-Eddie.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ qacct -j <JOB IDENTIFIER>

### Add path and create a virtual environment
Configure the path for your environments directory, i.e., the directory where all your conda environments will be stored, and packages (pkgs) directory used as a cache for your conda packages. By default cache for packages will be placed under `~/.conda/pkgs` and will very likely cause your home directory to go over quota as a result. We recommend using the group space you have used for your conda environments instead. **Note that this should be an existing directory, so you need to create it first if it doesn't already exist, before running the command below.**
{: .text-justify}
```shell
module load anaconda # version 5.0.1
```
Expand Down Expand Up @@ -126,6 +127,7 @@ conda install matplotlib=1.4.1

#### Using pip
If a package is not available in the Anaconda repositories it can still be installed with `pip` in the usual way. First, install `pip` into your active Anaconda environment. You must install pip into your environment first before running a pip command. Otherwise, `pip install` will use the pip installed in the Anaconda directory (which users do not have write access to) and your installation will fail. Once you have installed pip in your environment, then you can install a package using pip into your environment:
{: .text-justify}
```shell
conda install pip
pip install matplotlib
Expand Down

0 comments on commit 6eff9d8

Please sign in to comment.