Run poetry init and set up the env (already done 🔗)
Run poetry shell, which spawns the Python virtual environment
Run poetry install, which installs the packages based on the file poetry.lock.
🔗 I have already created the file pyproject.toml (where you can see all the project dependencies and other settings) and the poetry.lock (a file you don't need to read which holds Python packages versions information). Both these files should stay in the working directory.
How to create a Python virtual env. with Poetry 🚀
poetry init
and set up the env (already done 🔗)poetry shell
, which spawns the Python virtual environmentpoetry install
, which installs the packages based on the file poetry.lock.🔗 I have already created the file pyproject.toml (where you can see all the project dependencies and other settings) and the poetry.lock (a file you don't need to read which holds Python packages versions information). Both these files should stay in the working directory.
Later in the project you will learn for example how to add new dependencies to pyproject.toml, or how to update packages versions.
Useful Links ✨