This is a repo that explains how to install python3
Clone or download
Pull request Compare This branch is 2 commits behind Dvlpr-Dan:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Make sure Python 3 is installed!

  • You must use python 3 because Python2 will be deprecated soon.

  • Also, it's important to know the latest version of Django no longer supports Python2.

  • It's also recommended to use a virtual environment for your Django development!

    • Virtual Environments, AKA (VENV) is a tool to keep dependencies required by different projects in a separate place, by creating virtual Python environments for them.

    Basically, if your project has different software versions (and it will) virtualenv keep them nice and safe.

    • Here are the steps!
      • Make sure homebrew is installed, or you can install it here:
        • /usr/bin/ruby -e "$(curl -fsSL"
      • Now you can install python3 like this:
        • brew install python
        • You might get permissions errors:
        • If so, you can run these:
          • sudo chown -R "$USER":admin /usr/local
          • sudo chown -R "$USER":admin /Library/Caches/Homebrew
      • Now, check the version:
        • python -V
        • ...or python3 -V
        • Got it? Awesome!
      • Time to install pip! This is a package manager for python
        • Think npm for node / JavaScript - Now, run the command below:
          • sudo easy_install pip
      • Now, you need a virtual environment to install your stuff
        • sudo pip install virtualenv
      • At this point, it would be a good idea to make a project folder!
        • Navigate to the directory and create another directory we'll use for virtual environments
      • Now, run this command to create your virtual environment!
        • virtualenv <YOUR VENV NAME HERE> -p python3.6
        • Make sure your replace the: <YOUR VENV NAME HERE> with a name like: DjangoDev or myVENV, or something.
        • Your machine will start making some directories immediately after this command.
        • To activate your VENV, run this command:
          • source bin/activate
        • You should see something like this:
          • (yourenv) DanielsMac-2:~ $
      • Now, you can install Django!
        • Run this command:
          • pip3 install django
      • Now, your venv has Django installed in it!
        • Congratulations! 🎉
        • To deactivate your venv, you can just type the command deactivate and you should be good!