Pyenv & Poetry New Project Start

tl;dr:
# install pyenv on your machine

curl https://pyenv.run | bash

# install python in pyenv

pyenv install 3.9.5

# create virtual environment:

pyenv virtualenv 3.9.5 deez-nuts-joke-generator-dev

# set deez-nuts-joke-generator-dev as the default virtual environment for the current directory

pyenv local deez-nuts-joke-generator-dev

# install poetry in your virtual environment

pip install poetry

# install new dependencies

poetry add numpy

# install dependencies (if a pyproject.toml + poetry.lock already exists for a project)

poetry install

Zach Bellay published on

1 min, 78 words