Managing Python projects with PyEnv

in «tip» by Michael Beard
Tags: , , , , ,

How to Manage Virtual Environments with PyEnv

Managing virtual environments with pyenv

Good article. Has some good descriptions but here are the highlights that I will end up using.

#### list installed Python versions
pyenv install --list

#### install one
pyenv install 3.8.0

#### to activate and start using Python 3.8.0
pyenv shell 3.8.0
#### can verify by checking version
python

#### creating virtual env
pyenv virtualenv 3.8.0 my-data-project

#### activate the virtual env
pyenv shell my-data-project

#### now can install libraries into the current environment
pip install jupyter notebook matplotlib pandas

#### list all of the Python versions and environments installed
pyenv versions

There are probably others, but this will get you going.