First you have to install Anaconda or Miniconda from here: https://docs.anaconda.com/free/anaconda/install/mac-os/

If conda is installed, now you’ll be able to create your own virtual environemnt for further development. Here is the command for creating , activating and deactivating a virtual environment of Python.

conda create -n python=3.9

. Follow all informations in command terminal window. (Normally I suggest you to select [Y] all the time).

After completion of the given command you can activate your virtual environment using following command:

conda activate

If you want to deactivate the environment, use this command: conda deactivate