Skip to content

Instantly share code, notes, and snippets.

@taegon
Created November 19, 2019 22:05
Show Gist options
  • Select an option

  • Save taegon/2d96df0a4899215cedaf5300d899cf6e to your computer and use it in GitHub Desktop.

Select an option

Save taegon/2d96df0a4899215cedaf5300d899cf6e to your computer and use it in GitHub Desktop.
MSI python virtual environment setting

Python venv setting on MSI

# load python3 (Anaconda)
module load python3

# Generate vitual environment directory (it would locate the same directory, so check your directory)
python -m venv venv-ecosys

# Activate venv
source venv-ecosys/bin/activate

# install library what you want using pip
pip install plotly==4.3.0

# if you want to deactivate venv
deactivate

PBS script should be added

# load python3 (Anaconda)
module load python3

# Activate venv (check directory or use absolute path)
source venv-ecosys/bin/activate

# after this, you can run your python codes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment