Install Other Python Versions
All images come with Miniconda pre-installed.bash
Install Other Frameworks
bash
Install Python Dependencies
bash
Install System Dependencies
bash
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
In GPUhub, all data, including installed dependencies, is retained after shutdown. There is no need to reinstall them upon restart.
# Create a virtual environment named my-env with Python version 3.7:
conda create -n my-env python=3.7
# Update the environment variables in .bashrc:
conda init bash && source /root/.bashrc
# Activate the created virtual environment my-env:
conda activate my-env
# PyTorch: Find the appropriate version from Previous PyTorch Versions. For example:
conda install pytorch==1.9.0 torchvision==0.10.0 torchaudio==0.9.0 cudatoolkit=11.3 -c pytorch -c conda-forge
# TensorFlow: Find the corresponding version link from Install TensorFlow with pip. For example:
pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-2.6.0-cp38-cp38-manylinux2010_x86_64.whl
# Using pip: For example,
pip install opencv-python scipy numpy Pillow
# Using conda: For example,
conda install numpy
# Searching for package names:
pip search xxxx
conda search xxxx
# Trick to view available versions if unsure: Write a random version number (e.g., 9.9),
# and pip will list all available versions in the error message:
pip install xxx=9.9
# Example for installing zip:
apt-get update # Only needs to be run once, not every time
apt-get install -y zip
# Searching for package names:
apt-get update # Only needs to be run once, not every time
apt-cache search xxxxx