Skip to content

Argonne Leadership Computing Facility

Virtual Environments

Using a Venv

To create a virtual environment, one can use the --system-site-packages flag:

python -m venv --system-site-packages my_env
source my_env/bin/activate

Installing Packages

Install packages in the normal manner such as:

python3 -m pip install <package>

For more details see Use pip for installing.

To install a different version of a package that is already installed in one's environment, one can use:

pip install --ignore-installed  ... # or -I

Pre-Built Sample Venv

Each of the samples or application examples provided by SambaNova has its own pre-built virtual environment which can be readily used. They are present in the /opt/sambaflow/apps/ directory tree within each of the applications.

Note: Conda is not supported on the SambaNova system.