Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


p

Excerpt

Pip and Setuptools (setup.py) are the most popular tools for installing Python packages, and also the easiest ways to benefit from the Python performance libraries that come preinstalled on Pawsey systems.

...

Column
width900px


Code Block
languagebash
themeDJango
titleTerminal 6: Create and then activate a virtual environment
$ python -m venv $MYGROUP$MYSOFTWARE/manual/pythonEnvironments/python-venv # create a virtual environment 
$ source $MYGROUP$MYSOFTWARE/manual/pythonEnvironments/python-venv/bin/activate # activate the environment, updating python paths 
$ sg <projectcode> -c 'pip install astropy==4.1' # install astropy in the environment 
$ deactivate # deactivate the environment, now cannot load packages installed in venv. 


...