brew install pyenv
Make sure your bashrc file initializes pyenv
eval "$(pyenv init -)"
List python version
pyenv install --list
Install 3.7.0
pyenv install 3.7.0
You can install a different version of python in any path. cd to your path and run:
pyenv local 3.8.0
pip install -U pipenv
cd to your path and run:
pipenv install
install dependencies
pipenv install django
activate your virtualenv
pipenv shell
You're setup! Try it by running:
django-admin.py