Skip to content

Run command in different shell without exiting current poetry shell. #7905

Answered by radoering
real-yfprojects asked this question in Q&A
Discussion options

You must be logged in to vote

In general when having any poetry shell activated one cannot run commands in a different shell without exiting.

Not sure if I understand your issue, but if you want to execute a poetry command in another virtual environment while being inside a virtual environment of an outer poetry run you can try to remove "VIRTUAL_ENV" from the env you pass to the subprocess. That way, the inner poetry command will not use the outer environment.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@real-yfprojects
Comment options

@nealkruis
Comment options

Answer selected by real-yfprojects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants