This course uses Git, Python, Visual Studio Code, and Jupyter notebooks. This guide provides separate setup instructions for Windows and macOS, followed by repair procedures for computers that already contain older or conflicting installations.
Use the instructions for your operating system. Do not complete both paths.
By the end of this part, you should have:
- Git installed and working;
- Git Bash available on Windows;
- Python 3.13 installed;
- Visual Studio Code installed;
- the Microsoft Python and Jupyter extensions installed;
- Git Bash configured as the VS Code terminal on Windows;
- Git author information configured; and
- a verified set of tools ready for the course repository.
You will create a project-specific Python virtual environment after cloning the course repository in a later part.
Install a current Python 3.13 release. Do not install a prerelease, beta, release candidate, experimental free-threaded build, or Python 2.
Python 3.13 is identified by a version resembling:
Python 3.13.x
The final number may be different from examples in this guide. That is normal.
Do not choose a version with a t, a, b, or rc suffix, such as:
3.13t
3.15.0a1
3.15.0b2
3.15.0rc1
Those builds are not the standard course environment.
This course does not use Conda, Anaconda, or Miniconda.
Conda attempts to manage Python versions, packages, virtual environments, and shell configuration through its own parallel system. Those are all problems already handled adequately for this course by a standard Python installation, pip, and Python’s built-in venv module.
Adding a second package and environment manager makes error messages less predictable and makes it harder to determine which Python is actually running. We will use one small project-local environment named .venv instead.
If Conda is already installed, do not panic and do not start deleting files. Follow the repair section near the end of this guide.
Windows students will use Git Bash, including Git Bash inside Visual Studio Code. PowerShell can run Git, but using Git Bash keeps course commands consistent with macOS and other Unix-like environments.
Most Windows computers use an x64 processor. Some newer computers use ARM64.
- Open Settings.
- Select System.
- Select About.
- Find System type.
- Remember whether it reports x64 or ARM64.
Download installers matching that system type whenever a site offers both versions.
- Visit Download Visual Studio Code.
- Download the Windows User Installer matching your system type.
- Run the downloaded installer.
- Accept the license agreement.
- Keep the default installation location.
- If offered, enable these options:
- Add “Open with Code” action to Windows Explorer file context menu;
- Add “Open with Code” action to Windows Explorer directory context menu; and
- Add to PATH.
- Complete the installation.
The User Installer is appropriate for most students and normally does not require administrator access. See the official VS Code Windows installation guide.
Close any terminals that were open before installing VS Code. PATH changes are recognized by newly opened terminals.
- Visit Git for Windows.
- Download the installer matching your system type.
- Run the installer.
- Accept the default components, including Git Bash Here.
- If asked to choose Git’s default editor, select Visual Studio Code.
- If asked about Git’s default branch name, choose the option that allows new repositories to use
main. - Accept the remaining recommended defaults.
- Complete the installation.
Open Git Bash from the Windows Start menu and verify Git:
git --versionExpected output resembles:
git version 2.x.x.windows.x
The exact numbers will change over time.
Set the name that should appear on your commits:
git config --global user.name "Your Name"Set the email address that should appear on your commits:
git config --global user.email "your.email@example.com"Replace both examples with your own information. If you selected GitHub’s private noreply address in Part 1, use that exact address here.
Configure main as the default name for new branches:
git config --global init.defaultBranch mainConfigure Visual Studio Code as Git’s editor:
git config --global core.editor "code --wait"Verify the identity settings:
git config --global user.name
git config --global user.emailGit permanently includes the configured name and email in new commits. The official Git documentation identifies this as part of the first-time Git setup.
Python now provides a Windows install manager that installs and selects Python runtimes.
- Visit Python Releases for Windows.
- Download the current Python install manager.
- Open the downloaded installer.
- Select Install and allow the installation to finish.
- Close and reopen Git Bash.
Install the current standard Python 3.13 runtime:
py install 3.13Do not add t to the version. 3.13t is the experimental free-threaded build and is not used in this course.
Verify the installed runtime:
py -V:3.13 --versionExpected output resembles:
Python 3.13.x
Verify that pip is available through this exact Python installation:
py -V:3.13 -m pip --versionUsing python -m pip or py -V:3.13 -m pip is safer than using a bare pip command because it identifies which Python installation will receive the package.
For current details, see the official Python-on-Windows documentation.
Open Visual Studio Code.
- Select the Extensions icon on the left side of the window.
- Search for
Python. - Install Python, published by Microsoft.
- Search for
Jupyter. - Install Jupyter, published by Microsoft.
Verify the publisher before installing. Extensions with similar names are not necessarily the same products.
The required extension identifiers are:
ms-python.python
ms-toolsai.jupyter
You do not need to install every extension suggested by VS Code.
- Open Visual Studio Code.
- Open the Command Palette with
Ctrl+Shift+P. - Search for Terminal: Select Default Profile.
- Select Git Bash.
- Close existing VS Code terminal panels.
- Open a new terminal with Terminal → New Terminal.
The terminal prompt should resemble Git Bash rather than PowerShell:
student@computer MINGW64 ~
$
In the VS Code terminal, repeat these checks:
git --version
py -V:3.13 --version
code --versionIf all three commands work, continue to Cross-Platform Final Verification.
macOS students may use the regular Terminal application or the terminal built into Visual Studio Code. The default macOS shell is normally zsh, and the course commands will work there.
Open Terminal and run:
git --versionIf Git is already installed, the command displays a version number and you may continue.
If macOS asks to install the Xcode Command Line Tools, accept the installation and allow it to finish. You can also start that installer with:
xcode-select --installAfter installation, close and reopen Terminal, then verify Git again:
git --versionThe Apple-provided Git from the Command Line Tools is sufficient for this course. Git also documents this installation method on its official macOS installation page.
- Visit Download Visual Studio Code.
- Download the macOS build appropriate for your Mac. The Universal build supports both Apple silicon and Intel Macs.
- Open the downloaded
.dmgfile. - Drag Visual Studio Code.app into the Applications folder.
- Open Visual Studio Code from Applications or Spotlight.
See the official VS Code macOS installation guide if macOS blocks or cannot locate the application.
- Open Visual Studio Code.
- Open the Command Palette with
Cmd+Shift+P. - Search for Shell Command: Install 'code' command in PATH.
- Run that command.
- Close and reopen Terminal.
Verify the command:
code --versionThe code command will later let you open the current project folder with:
code .Set the name that should appear on your commits:
git config --global user.name "Your Name"Set the email address that should appear on your commits:
git config --global user.email "your.email@example.com"Replace both examples with your own information. If you selected GitHub’s private noreply address in Part 1, use that exact address here.
Configure main as the default name for new branches:
git config --global init.defaultBranch mainConfigure Visual Studio Code as Git’s editor:
git config --global core.editor "code --wait"Verify the identity settings:
git config --global user.name
git config --global user.emailDo not rely on Apple’s system Python. That copy belongs to macOS and its development tools.
- Visit Python Releases for macOS.
- Locate the latest stable Python 3.13 release.
- Download its macOS installer.
- Open the downloaded
.pkgfile. - Accept the standard installation options.
- Do not enable an experimental free-threaded build.
- Complete the installation.
After installation, open the newly created /Applications/Python 3.13/ folder and double-click:
Install Certificates.command
A temporary terminal window should report that certificate installation completed successfully. This step allows the Python installation to establish secure connections when downloading packages. It is part of the official Python macOS installation procedure.
Close and reopen Terminal, then verify Python:
python3.13 --versionExpected output resembles:
Python 3.13.x
Verify pip through this exact Python installation:
python3.13 -m pip --versionDo not delete or modify /usr/bin/python3. That installation is controlled by Apple and may be used by macOS or Apple development tools.
Open Visual Studio Code.
- Select the Extensions icon on the left side of the window.
- Search for
Python. - Install Python, published by Microsoft.
- Search for
Jupyter. - Install Jupyter, published by Microsoft.
The required extension identifiers are:
ms-python.python
ms-toolsai.jupyter
- In VS Code, select Terminal → New Terminal.
- Run:
git --version
python3.13 --version
code --versionIf all three commands work, continue to Cross-Platform Final Verification.
Use this section if tools were already installed, commands produce surprising results, or VS Code cannot locate Git or Python.
Do not randomly delete Python folders or manually remove files from system directories. First determine what the computer is actually running.
Open Git Bash and run:
git --version
where.exe git
where.exe python
where.exe py
py list
py -V:3.13 --version
py -V:3.13 -c "import sys; print(sys.executable)"Not every command must return a result. The output helps identify duplicate installations and incorrect PATH entries.
- Close every terminal and VS Code window.
- Reopen Git Bash from the Start menu.
- Run
git --versionagain. - If it still fails, rerun the official Git for Windows installer.
- Make sure the Git command-line and Git Bash components are enabled.
- Close and reopen Git Bash.
- Confirm that VS Code was installed using the User or System Installer rather than merely extracted from a ZIP file.
- If necessary, rerun the VS Code installer and enable Add to PATH.
Install the current Python install manager from Python.org, close all terminals, and open a fresh Git Bash window. Then run:
py install --configure -y
py install 3.13
py -V:3.13 --versionFor this course, use the explicit py -V:3.13 command until the project virtual environment has been created. This avoids accidentally using a different global Python installation.
Multiple Python installations are not automatically a problem. The important requirement is that this command selects Python 3.13:
py -V:3.13 -c "import sys; print(sys.version); print(sys.executable)"Do not uninstall other versions if another course or application may require them. Ask the instructor before removing an installation you do not recognize.
- Open the Command Palette with
Ctrl+Shift+P. - Run Terminal: Select Default Profile.
- Select Git Bash.
- Delete or close the existing terminal session.
- Open a new terminal.
Changing the default does not transform a terminal that is already open; you must create a new one.
Open Terminal and run:
git --version
which -a git
which -a python3
which -a python3.13
python3.13 --version
python3.13 -c "import sys; print(sys.executable)"Run:
xcode-select --installComplete the Apple installer, close Terminal, reopen it, and run git --version again.
Do not delete /usr/bin/python3.
Install Python 3.13 from Python.org, run Install Certificates.command, and use the explicit course interpreter:
python3.13 --version
python3.13 -c "import sys; print(sys.executable)"The project virtual environment created later will prevent the system Python from being selected accidentally.
Open VS Code and run this command from the Command Palette:
Shell Command: Install 'code' command in PATH
Close and reopen Terminal before testing code --version again.
If the terminal prompt begins with (base), Conda has automatically activated its base environment:
(base) student@computer ...
Deactivate it:
conda deactivateDisable automatic base activation:
conda config --set auto_activate_base falseClose and reopen the terminal. The (base) prefix should no longer appear.
Conda may remain installed for another course, but do not activate it while working on CMPS 3603. Do not combine a Conda environment with the course .venv.
If (base) returns after disabling automatic activation, show the instructor the output of these commands before editing shell configuration files:
where.exe conda
where.exe pythonwhich -a conda
which -a python3-
Confirm that the computer is connected to the internet.
-
Open the Extensions view.
-
Search for the exact extension identifier:
@id:ms-python.python -
Repeat for:
@id:ms-toolsai.jupyter -
Confirm that the publisher is Microsoft.
-
Open the Command Palette and run Developer: Reload Window after installation.
Do not spend time repairing the global interpreter selection yet. In a later part, you will create .venv inside the course repository and explicitly select it in VS Code.
For now, verify only that the required base interpreter works:
py -V:3.13 --versionpython3.13 --versionRun the appropriate group of commands in the terminal built into VS Code.
git --version
py -V:3.13 --version
py -V:3.13 -m pip --version
code --version
git config --global user.name
git config --global user.email
code --list-extensionsgit --version
python3.13 --version
python3.13 -m pip --version
code --version
git config --global user.name
git config --global user.email
code --list-extensionsThe extension list should contain:
ms-python.python
ms-toolsai.jupyter
Capitalization in the displayed extension list may vary.
- Do not install Python 2.
- Do not install a Python alpha, beta, release candidate, or free-threaded build.
- Do not install Anaconda, Miniconda, or another Conda distribution for this course.
- Do not run
sudo pip install ...on macOS. - Do not delete Apple’s
/usr/bin/python3. - Do not install packages globally merely to make an error disappear.
- Do not randomly edit PATH or shell startup files.
- Do not create the course
.venvyet; that environment belongs inside the repository you will create in the next part.
When troubleshooting, identify which executable is running before changing the computer.
Before continuing, confirm each item:
- Git reports a version number.
- Windows users can open Git Bash.
- Windows users configured Git Bash as the default VS Code terminal.
- Python 3.13 reports a version number.
-
pipis available through the Python 3.13 interpreter. - Visual Studio Code is installed.
- The
codeterminal command works. - The Microsoft Python extension is installed.
- The Microsoft Jupyter extension is installed.
- Git contains my correct author name.
- Git contains my intended commit email address.
- Conda is not active.
- I did not modify or delete an operating-system Python installation.
Next: Part 3 — Create the Public Student Repository and Connect It to the Course Repository