Cannot use multiple environment per project with virtualenvs.in-project=True
See original GitHub issue-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option). -
Mojave 10.4.6:
-
Poetry version 1.0.5:
Issue
Hi,
I’m switching from Pipenv to Poetry, and for now, it’s been all for the better!
One aspect of poetry that I like a lot it multiple environments per project As shown in the doc here
The first setting I set in Poetry was virtualenvs.in-project which create a .venv
in the project root.
Now let’s say I want to be able to run tests on both python 2 and python 3, one cannot just switch the environment but the environment gets overwritten.
Is there a way to use both features at the same time? If so how?
Thanks a lot
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Hello @finswimmer,
Thanks for the confirmation, is there a reason for this? Can’t we create a
.venv2.7.15
&.venv3.7.xx
and usepoetry use
to switch between them?The general idea is that I don’t write anything to the system disk (well as little as possible). I don’t like the concept of having a general place for all envs but if there is no plan for any of this I will find a way using custom path and your
--local
trick for the projects that use multiple python!Thanks for the support! Yes I realized the names weren’t random but linked to the project which is fine also.
Coming from pipenv poetry has been a bless!!