poetry env remove does not work with in-project = true
See original GitHub issueHi Guys,
I’m using a poetry virtual env with in-project = true
to have the environment created inside the project.
Anyways, if I run the command poetry env remove python3
instead of removing .venv
it errors out saying that Environment "poetry-project-RoyKdWrW-py3.5" does not exist.
This command does work as expected if we store the environments in the regular cache.
It is a very minor bug since I can always do rm -rf .venv
though.
Thanks for the amazing work.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
I can't delete an poetry managed environment - Stack Overflow
The simplest way to delete poetry env is to try something like this. poetry env remove python3.10.
Read more >Configuration | master | Documentation | Poetry - Python ...
If set to true the --no-pip parameter is passed to virtualenv on creation of the virtual environment. This means when a new virtual...
Read more >Python Poetry: Package and venv Management Made Easy
Learn how to install and use the Python Poetry package manager to manage the dependencies and virtual environment(s) of your Python project.
Read more >Poetry Advance - Python Biella Group
These dependencies are not required for the application to run and will not be ... poetry and venv exit # remove venv with...
Read more >Python poetry: Explanations and tips - Frank-Mich's Blog
When you run poetry install , this environment is created in a place that depends on your ... poetry config virtualenvs.in-project true.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Think this is because, unlike
poetry env list
, removal doesn’t check for a.venv
file ifin-project = true
. Happy to try and patch.In deed it is. I’ll close it.