Created
May 2, 2021 22:56
-
-
Save zachbellay/52310c8a2d24738b71166086b5ca15f9 to your computer and use it in GitHub Desktop.
Python Poetry Start New Project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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