Which of the following is NOT a valid way to activate a virtual environment in Python?
Correct answer
C. activate
16 views
C. activate
16 views
While 'activate', 'source activate', and '. venv/bin/activate' are valid ways to activate a virtual environment in Python, '. activate' is not. The correct command to activate a virtual environment is 'source activate' or '. venv/bin/activate' on Unix-based systems.
Not sure why the answer is C? Ask here and get an explanation.