A virtual environment named work-env was created in the current working directory. Then it was properly activated. Which command will deactivate the work-env virtual environment (Windows)? The > character stands for a command prompt.

Questions & AnswersCategory: PythonA virtual environment named work-env was created in the current working directory. Then it was properly activated. Which command will deactivate the work-env virtual environment (Windows)? The > character stands for a command prompt.
Geek Boy Staff asked 2 years ago

A virtual environment named work-env was created in the current working directory. Then it was properly activated. Which command will deactivate the work-env virtual environment (Windows)? The > character stands for a command prompt.
a. > .\work-env\deactivate
b. > .\env\deactivate
c. > stop
d. > deactivate

1 Answers
Lokesh Kumar Staff answered 2 years ago

d. > deactivate
Explanation

You can deactivate a virtual environment by typing “deactivate” in your shell. The exact mechanism is platform-specific and is an internal implementation detail.