Skip to content

Instantly share code, notes, and snippets.

@teebot
Created October 25, 2018 07:41
Show Gist options
  • Save teebot/a61f94d6399bafe29f1724fafe9a1bed to your computer and use it in GitHub Desktop.
Save teebot/a61f94d6399bafe29f1724fafe9a1bed to your computer and use it in GitHub Desktop.
Python django setup

Setup Python

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

Setup Pipenv

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment