Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.48 KB

File metadata and controls

48 lines (34 loc) · 1.48 KB

Python Environment Setup

Navigation

macOS

  1. Install Python 3.7 via Homebrew:

    brew install python@3.7
  2. Set Python 3.7 to be the default, and modify the PATH:

    mkdir ~/pythons
    ln -s /usr/local/opt/python@3.7/bin/python3 ~/pythons/python
    ln -s /usr/local/opt/python@3.7/bin/pip3 ~/pythons/pip
    echo >> ~/.zshrc
    echo 'export PATH="$HOME/pythons:/usr/local/opt/python@3.7/bin:$PATH"' >> ~/.zshrc
  3. Quit Terminal (Command+Q) and re-open it. python should now be the latest Python 3.7.

Windows (via WSL)

Microsoft has kindly documented the full process at: https://docs.microsoft.com/en-us/windows/python/web-frameworks

Please complete the following sections of that documentation:

✅ Set up your development environment
✅ Install Windows Subsystem for Linux (NOTE: we covered this already)
✅ Set up Visual Studio Code
✅ Create a new project
✅ Install Python, pip, and venv
✅ Create a virtual environment
✅ Open a WSL - Remote window
✅ Install the Microsoft Python extension
✅ Run a simple Python program

At this stage you do not need to complete the following sections of that documentation:

🚫 Hello World tutorial for Flask
🚫 Hello World tutorial for Django