Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zachbellay/52310c8a2d24738b71166086b5ca15f9 to your computer and use it in GitHub Desktop.
Python Poetry Start New Project
# create project directory
mkdir <project-name>
# enter the directory
cd <project-name>
# install pyenv on your machine
curl https://pyenv.run | bash
# install python in pyenv
pyenv install 3.9.4
# create virtual environment:
pyenv virtualenv 3.9.4 <project-name>
# set hole-classifier-dev as the default virtual environment for this directory
pyenv local <project-name>
# install poetry in your virtual environment
pip install poetry
# add dependencies
poetry add numpy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment