-
Notifications
You must be signed in to change notification settings - Fork 2.3k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
How to delete virtual env? #926
Comments
The latest preview version (which can be installed with If you want to see where the virtualenv is stored, there are various ways to print it out. |
On macOS, envs are located here |
On Linux, the easiest way to find the virtualenv is to pop into a subshell and run
|
I feel like this should be easier. Maybe something like |
@arnegroskurth the As pointed out above you can also do |
@abn Sure but that is more complicated and requires the user to know about the So I feel like there should be something to just level the playing-field without me having to think about venvs again. |
Sounds to me more like a deficiency in the documentation and/or onboarding guide for a new user to Poetry. That is definitely an area that we are interested in improving on. At this time, I do not think we want to encourage the addition of multiple commands to do the same task. And, personally, adding something like |
@abn I just feel like that the benefit of using poetry over venv+pip is for the user to not have to care about two separate tools for dependency-management and project-isolation anymore. And because I can create and update the environment with top-level poetry commands, I feel like that I should also be able to remove the environment with a top-level command that is much more discoverable ( |
That definitely is one of the advantages of using poetry. Although, it is important to note that explicit creation of an environment relies on We appreciate your feedback on this. However, for this matter I do not see a reason to change the current behaviour at this time. |
Please note that the suggested command can be quite dangerous if accidentally run in a directory not handled by poetry. |
This worked for me:
Running |
you can actually just run |
addendum: just note the so, if your default path the lookup is here: execute code using the |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
How do I delete a virtual env? I tried just deleting the file but poetry stopped working after that.
The text was updated successfully, but these errors were encountered: