Poetry: easy way to find virtualenv path

Created on 15 May 2018  路  4Comments  路  Source: python-poetry/poetry

It would be helpful if there was a simple command to determine the path to the current virtualenv. I can easily enough run poetry run which python, but that may not be the first idea. This is helpful for both running commands without prefixing them with poetry run every time, and also helpful for IDEs like PyCharm that want to know where the virtualenv lives.

Something like poetry virtualenv.

Most helpful comment

FYI: The first line of $ poetry show -v will tell you where the virtual environment is located.

Many other commands seem to do the same with -v/--verbose.

All 4 comments

FYI: The first line of $ poetry show -v will tell you where the virtual environment is located.

Many other commands seem to do the same with -v/--verbose.

@sdispater After the shell stuff, this is definitely something I can handle, hahah. What's your take on this?

This will be supported in the next major version (1.0.0). See https://github.com/sdispater/poetry/pull/731 for more information.

This issue will be closed since:

  • poetry show -v also already gives you this information
  • PR #731 resolves this with a nicer interface than poetry show -v
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ambv picture ambv  路  3Comments

jhrmnn picture jhrmnn  路  3Comments

probablykasper picture probablykasper  路  3Comments

sobolevn picture sobolevn  路  3Comments

etijskens picture etijskens  路  3Comments