I am trying to create a virtual environment on my Mac using terminal commands for Python 2.7 but it is not working.
I issue the following commands;
mkdir Environments
cd Environments
python -m virtualenv python27
source python27/bin/activate
python --version
Instead of reporting the version of Python as 2.7 it still says I have version 3.9.7. Terminal displays the following but the version option doesn't report Python 2.7
(python27) (base) StephenLearmonth@Stephens-MBP Environments % python --version
Python 3.9.7
I have macOS Monterey 12.3.1 and when I type zsh --version
I get;
zsh 5.8 (x86_64-apple-darwin21.0)