How do you activate a virtual environment in Python using virtualenv?
Correct answer
C. source activate
18 views
C. source activate
18 views
In virtualenv, to activate a virtual environment on Unix-based systems (such as Linux and macOS), you use the 'source' command followed by the path to the 'activate' script in the virtual environment's 'bin' directory. For example, 'source /path/to/venv/bin/activate'.
Not sure why the answer is C? Ask here and get an explanation.