Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove virtual environment created with venv in python3

How can I delete a virtual environement created with

python3 -m venv <name> 

Can I just remove the directory?

This seems like a question googling should easily answer, but I only found answers for deleting environments created with virtualenv or pyvenv.

like image 273
McLawrence Avatar asked May 24 '17 12:05

McLawrence


People also ask

How do I delete a VENV environment?

There is no command for deleting your virtual environment. Simply deactivate it and rid your application of its artifacts by recursively removing it. Note that this is the same regardless of what kind of virtual environment you are using.

How do you delete a virtual environment in Python?

You can deactivate a virtual environment by typing “deactivate” in your shell. The exact mechanism is platform-specific and is an internal implementation detail (typically a script or shell function will be used).

What is python3 VENV VENV?

venv (for Python 3) and virtualenv (for Python 2) allow you to manage separate package installations for different projects. They essentially allow you to create a “virtual” isolated Python installation and install packages into that virtual installation.


1 Answers

Yes, delete the directory. it's where executables for the venv and modules and libraries and entire other stuff for venvs is kept.

like image 110
gonczor Avatar answered Sep 22 '22 20:09

gonczor