Pipenv: Destroying the current virtualenv via Pipenv

Created on 21 Dec 2017  路  1Comment  路  Source: pypa/pipenv

Hello all, I firstly want to say thank you for the great project. I have used virtualenv + virtualenvwrapper for a year, now I am trying Pipenv as it seems to be moved to pypa project. It feels really comfortable and safe to use.

In comparison with virtualenvwrapper, Pipenv has no command like rmvirtualenv. As far as I know, to do this, I check the path for the virtualenv then delete it directly as below.

$ pipenv --venv
/home/don/.local/share/virtualenvs/esl-S-0IVzfS
$ rmvirtualenv esl-S-0IVzfS  # or
$ rm -rf /home/don/.local/share/virtualenvs/esl-S-0IVzfS

The situation that I am concerning is when I delete the project directory and the corresponding virtualenv remains. Of course I may check the unused virtualenv by lsvirtualenv and remove it, but I feel that it is not a compact way.

I may be wrong with the usage or the philosophy of Pipenv, are there another way to do this? Or, is the manual removal enough?

Since I searched a bit but I could not find relevant issues, so I leave it here.

Describe your environment
  1. OS Type: Ubuntu 16.04
  2. Python version: 3.5.2
  3. Pipenv version: 9.0.1
Expected result

Maybe pipenv destroy?

Most helpful comment

I found --rm option now. I am sorry!

>All comments

I found --rm option now. I am sorry!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xi picture xi  路  3Comments

AkiraSama picture AkiraSama  路  3Comments

fbender picture fbender  路  3Comments

jerzyk picture jerzyk  路  3Comments

jacek-jablonski picture jacek-jablonski  路  3Comments