python_setup_instructions
python_setup_instructions
1. Download Python
Download Python using the appropriate link below.
Windows: https://www.python.org/ftp/python/3.8.6/python-3.8.6-amd64.exe
Mac: https://www.python.org/ftp/python/3.8.6/python-3.8.6-macosx10.9.pkg
DO NOT INSTALL PYTHON FROM THE WINDOWS APP STORE (OR MAC APP STORE). IT WILL NOT
INSTALL EVERYTHING REQUIRED. THERE IS A REASON WE ARE GIVING YOU THIS LINK, PLEASE
USE IT!
Please do not install an alternative version of Python without checking with Mr Baumgarten. Our
dependencies require 64 bit and are not yet compatible for v3.9.
2. Install Python
● TICK THE BOX to add Python 3.8 to PATH - it will cause all sorts of headaches later if you don’t!
● Run the I NSTALL NOW option. Accept ALL DEFAULTS. Changing the defaults WILL CAUSE
PROBLEMS LATER. Trust us.
3. Download VS Code
Windows: https://vscode-update.azurewebsites.net/latest/win32-x64/stable/
Mac: https://vscode-update.azurewebsites.net/latest/darwin/stable/
4. Install VS Code
● When presented, please turn ON all these options
● “Launch VS Code” when offered at the end of the install, and move on to step 5.
When this info screen appears with the “disable” and “uninstall” buttons, it means the installation has
completed.
Click the Folder view icon on the left sidebar (the top one as highlighted below) and then click Open Folder.
Open the folder you want VS Code to save your project work in. The coloured bar running across the bottom
of VS Code will change from purple to blue when you have opened a folder successfully.
6. Install Python packages
Use VS Code to open a terminal session via the menu bar across the top.
In the Terminal Window, type pip -V … and you should get a line similar to the one below indicating pip is
installed.
If you get a message ' pip' is not recognized as an internal or external command, operable program or batch
file then you have not installed Python correctly. Uninstall Python and do it again following the instructions
more carefully.
Once you know pip is working, install the Python packages required for your unit as follows:
A large wall of text will appear as pip installs the packages. Provided the end of the text includes a message
that says, “Successfully installed” such as the screenshot below, you are safe to proceed. (you can ignore a
pip version warning). Type e xit to close the terminal window.
7. Test everything works
Create a new file
print("Hello world")
Make sure the filename ends in .py to tell VS Code this will be a Python file.
It might take a few seconds the first time, but once successfully saved you will get a green play button that
will run your code.
You should be ready to start the first lesson!
Troubleshooting
The main problem that occurs is students not installing the pip tool with Python, or installing a 32bit version
of Python. These are the Python defaults. They are required.