Install Additional Packages

Prerequisite: You must have an existing virtual environment. Instructions for creating one can be found here.

The steps below will walk you through installing additional packages in an existing virtual environment.

1. Open a Terminal

If you're not already logged in, follow the steps found here. In the upper-right corner, click the New button and select Terminal.

2. Activate your virtual environment

Run source activate <name_of_ve> where <name_of_ve> is the name of your virtual environment. If you have forgetten and you need to see a list, you can run conda env list.

grahamhenke@bacon:~$ source activate myEnv
(myEnv) grahamhenke@bacon:~$

3. Install packages

Now that you are in your virtual environment, you may install packages using conda install or pip install. For example, to install the requests package, run:

conda install requests

Note: We highly recommend trying conda install first, as it installs low level dependencies that some packages (such as tensorflow) need. If this does not work, then use pip install.

4. Open a notebook with the kernel

Navigate back to the Home tab. Next, click the New button and select the name of your kernel, which is myEnv in this example.

5. Import packages

You can now import and use packages from your kernel. Notice the requests package imports successfully.