mac catallina python3

$ brew install pyenv 

Here is what the above code is Doing:
1. Install pyenv
2. Install pyenv-virtualenv
3. Add pyenv to your path
4. Add pyenv-virtualenv to your path
5. Add the following to your .bash_profile or .zshrc:

export PATH=”$HOME/.pyenv/bin:$PATH”
eval “$(pyenv init -)”
eval “$(pyenv virtualenv-init -)”

6. Restart your shell
7. Install Python 3.6.1

$ pyenv install 3.6.1

8. Set 3.6.1 as your global Python version

$ pyenv global 3.6.1

9. Verify that Python 3.6.1 is your current Python version

$ python –version

10. Install virtualenv

$ pip install virtualenv

11. Create a virtual environment for your project

$ cd my_project_folder
$ virtualenv env

12. Activate your virtual environment

$ source env/bin/activate

13. Install Django in your virtual environment

(env) $ pip install django

14. Verify that Django is installed correctly

(env) $ python -c “import django; print(django.get_version())”

15. Deactivate your virtual environment

(env) $ deactivate

16. Delete your virtual environment

$ rm -rf env/