Reputation: 2698
I installed poetry using the following command:-
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
To know more about it refer this.
Now I wanted to create a virtual environment, that I created it using the following command:-
poetry config virtualenvs.in-project true
To know more about it refer this.
But after doing this, I can`t see any .venv(virtual environment) folder.
To check if virtual environment is there, we use the following command:-
poetry config virtualenvs.in-project
and if the above command return true
, implies you have it.
I'm getting true
, also the location mentioned on the docs I cant see it there.
Could anyone tell me how to locate the virtual environment now?
Upvotes: 35
Views: 58467
Reputation: 9912
Usually the poetry virtual environments can be found in
ls ~/.cache/pypoetry/virtualenvs/
Upvotes: 1
Reputation: 2698
There are 2 commands that can find where the virtual environment is located.
poetry show -v
The first line of this command will tell you where the virtual environment is located.
And the rest will tell you which packages are installed in it.
poetry env info -p
The above command will give you just the location of the virtual environment.
Upvotes: 58