Skip to content

Avoid clearing environment if pip is not able to install new requirements #40

@rasmusoej

Description

@rasmusoej

If you run venv install -r somefile.txt but somefile.txt does not exist then the environment is first cleared and then pip gives an error (see attachment). It could be a nice feature to first check if the file exists before clearing the environment. The same problem occurs if you try to install a package that is not known to pip.

Of course it is bad practice to try to install something that does not exist and in most cases you are able to recreate the environment which was cleared, but it would be nice to not lose the entire environment due to a spelling mistake for instance ;)

Screenshot from 2024-03-19 07-25-03

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions