poetry install vs poetry env use #6691
-
|
Both these commands can create a virtual environment with the latter also activating it immediately. I notice |
Beta Was this translation helpful? Give feedback.
Answered by
neersighted
Oct 3, 2022
Replies: 1 comment
-
|
These commands do radically different things:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
doolio
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These commands do radically different things:
poetry installcreates the Poetry-managed environment if it doesn't already exist, and then installs the project + its dependencies insidepoetry env useset the Python used for the Poetry-managed environment, creating it if it doesn't already exist.envs.tomlis created to record what the 'current interpreter' for the environment is (as the user has explicitly selected one, instead of letting Poetry select the interpreter implicitly)