Two options are available for setting up your device so that you’re ready to learn in our workshops with Microsoft Windows.
The first is Git for Windows (often referred to as “Git Bash”), and the second is Windows Subsystem for Linux v2 (“WSL 2”).
If you experience any issues, please install Git for Windows using the instructions below.
Help! What should I use?
We recommend Git for Windows as the default bash experience for Windows users attending our workshops, as it is the most straightforward to install and use, and does not require admin privileges. However, it has limited functionality compared to a full Linux environment, and when you continue your data science learning after the workshop you will find that Git Bash does not support all the tools and workflows you might need. We recommend that after the workshop, you consider installing WSL 2 to get a more complete Linux experience within your Windows environment, and to have access to the full range of tools and software available on Linux.
Checking your Windows Version
Click on the Windows Start Menu button in the bottom left corner of your screen, or tap the Windows button on your keyboard, and type “System” in the search bar.
Click the “System (Control Panel)” option.
In the window that opens, there will be information about your current Windows system, including the version. Here is an example from Windows 11:
Depending on your version, please go to the relevant instructions below.
Windows XP/Vista/7/8
These versions of Windows are considered End Of Life, and are not recommended for use in modern data science.
Software may experience issues, and security updates are also not available which puts your machine at risk.
Please consider upgrading your Windows version if you are able to do this yourself, or speak with your local IT administrator to discuss options available to you to upgrade.
If you are running any of these Windows versions, please install Git for Windows using the installation instructions below.
Windows 10 (earlier than version #1903)
For older versions of Windows 10 (version 1903/OS build 18362 and below), please follow the Git for Windows installation instructions below.
Windows 10 (version #1903 and later) and Windows 11
Windows 11 and later versions of Windows 10 support WSL 2, so following the workshop where you will use Git Bash, we recommend that you consider installing WSL2. If you are not comfortable installing WSL 2, please follow the Git for Windows installation instructions below.Installing Git for Windows
- Download the Git for Windows installer.
- Run the installer and follow the steps below:
- Click on "Next" four times (if you see "Install" instead of "Next", uncheck the box "Only show new options", then click "Next" two times). You don't need to change anything in the Information, location, components, and start menu screens.
-
From the dropdown menu, "Choosing the default editor used by Git", select "Use the Nano editor by default" (NOTE: you will need to scroll
up to find it) and click on "Next". - On the page that says "Adjusting the name of the initial branch in new repositories", ensure that "Let Git decide" is selected and click on "Next". This will ensure the highest level of compatibility for our lessons.
- Ensure that "Git from the command line and also from 3rd-party software" is selected and click on "Next". (If you don't do this Git Bash will not work properly, requiring you to remove the Git Bash installation, re-run the installer and to select the "Git from the command line and also from 3rd-party software" option.)
- Select "Use bundled OpenSSH" and click on "Next".
- Ensure that "Use the native Windows Secure Channel Library" is selected and click on "Next".
- Ensure that "Checkout Windows-style, commit Unix-style line endings" is selected and click on "Next".
- Ensure that "Use Windows' default console window" is selected and click on "Next".
- Ensure that "Fast-forward or merge" is selected and click "Next"
- Ensure that "Git Credential Manager" is selected and click on "Next".
- Ensure that "Enable file system caching" is selected and click on "Next".
- Click on "Install".
- Click on "Finish" or "Next".
-
If your "HOME" environment variable is not set (or you don't know what this is):
- Open command prompt (Open Start Menu then type
cmdand press Enter) -
Type the following line into the command prompt window exactly as shown:
setx HOME "%USERPROFILE%" - Press Enter, you should see
SUCCESS: Specified value was saved. - Quit command prompt by typing
exitthen pressing Enter
- Open command prompt (Open Start Menu then type
This will provide you with both Git and Bash in the Git Bash program.
![Miniforge Prompt [your-username] as froggleston](assets/img/miniforge_prompt.png)