Versions Compared

Key

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

...

Column
width900px


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


Related pages