Skip to main content
If you need to use other versions of CUDA or cuDNN, you can easily set up the required environment in just a few steps using Miniconda. We recommend choosing the Miniconda image when creating an instance (it does not come with any deep learning frameworks pre-installed, keeping the runtime environment clean and avoiding unnecessary issues). The following example demonstrates how to use Conda to set up an environment for TensorFlow 1.15.0.
If you need to install the virtual environment on a data disk, please refer to the method described at the end of the document.

Creating a Virtual Environment

bash

Installing Software Dependencies

Here is an example of installing TensorFlow 1.15.0.
bash
python

Switching the Notebook Environment

How to Use the New Conda Environment in JupyterLab Notebook
bash
After executing the above commands, if you create a new Notebook, you can select the Notebook named “tf”. If it is an existing Notebook

Clearing the Conda Virtual Environment

bash

Deleting Installation Packages and Cache

bash

Installing the Virtual Environment to the Data Disk

Execute the following commands to set up the virtual environment installation path to /root/guphub-tmp/conda/envs and the package cache path to /root/guphub-tmp/conda/pkgs:
bash
Verifying the Configuration
bash
Cancelling the Configuration for Installing Virtual Environment to the Data Disk Edit the /root/.condarc file and delete the lines corresponding to the configured paths.