1. Home
  2. Data Science
  3. Python
  4. Which of the following is NOT a valid way to activate a…

Added 10 Feb 2024

Which of the following is NOT a valid way to activate a virtual environment in Python?

  1. activate
  2. source activate
  3. activate Correct answer
  4. venv/bin/activate

Correct answer

C. activate

16 views

MCQSEXAM

Explanation

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.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs