-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use multiple environment per project with virtualenvs.in-project=True #2404
Comments
Hello @melMass, if you have an in-project virtual environment this will always take precedence over any other location. So if you plan to use multiple envs you have to set in-project to false. This can be done also on a per project base using the fin swimmer |
Hello @finswimmer, Thanks for the confirmation, is there a reason for this? The general idea is that I don't write anything to the system disk (well as little as possible). |
Hello again, I just made a short test, but it looks like |
Perfect !! This is exactly what I was after. For reference here is my setup using pyenv: cd project
poetry config --local virtualenvs.path ./
poetry config --local virtualenvs.in-project false
RM -rf .venv # (remove the old one manually)
pyenv global 3.7.4 2.7.15 # enable both python2 and python3
pip2 install virtualenv
poetry use 2.7.15
poetry install
poetry use 3.7.4
poetry install
|
Fine :) You cannot modify the name of the virtual environment folder itself. fin swimmer |
Thanks for the support! Coming from pipenv poetry has been a bless!! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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
The text was updated successfully, but these errors were encountered: