Python Virtual Environments

Creating virtual environments for Python is still the best way to be sure your workstation / notebook will not be cluttered with different versions and libraries.

Prerequisites (macOS)

$ brew install pyenv
$ brew install pyenv-virtualenv
$ pyenv install 3.7.8

Create and activate environment

$ pyenv virtualenv 3.7.8 ENV_NAME
$ source ~/.pyenv/versions/3.7.8/envs/ENV_NAME/bin/activate

Do you also require Poetry?

$ curl -sSL | python