Installing packages on Windows

Installing via VS code Use the ‘Terminal’ window, the ‘Python’ one Installing Installing into main Python folder (not necessarily the same one your VS Code is using!) Python comes with the pip package manger Installing / updating Use the windows command prompt <<<Use ‘Run as administrator’ to it can write to the Python install directorychange […]

Read More

Installing Python in Windows

Download the latest version from: https://www.python.org/downloads/ Ensure you are admin and run the installer, select “Customize installation”Ensure “for all users” is checkedPress Next Install Python for all users = checked Add Python to environmental variables = Checked Removing the MAX_PATH Limitation Using regedit, set LongPathsEnabled to 1 in the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem. Updating Python to […]

Read More

Visual Studio Code

Resources https://code.visualstudio.com/docs/python/python-tutorial Setup for VS Code Python programming Install Python for Windows Reboot windows (so the correct environmental variables are picked up for python by VS code – we found was needed after adding / updating Python to a new version). In VS Code, add the “Python extension for Visual Studio Code”, just named “Python”. […]

Read More

Running Python scripts & programs

Using the Windows command prompt This is the format of what you need to enter python Instructs that you want to use python.exe for this.  Sometimes you need to enter “python3” instead of “python”, if that’s what your .exe is named. This assumes you have the path to python.exe added to your Windows PATH environmental […]

Read More

Python command line

The Python Interpreter command line You use this to write Python code directly into the command line Using the Python Interpreter Opening the command line Start > All Apps > Python 3.7 > Python 3.7 (64 bit) Closing the command line CTRL+Z or you can type “quit()”

Read More