How To Set Up A Python 2.7 Runtime On Your Windows System

Introduction

For the purposes of claiming forks with the bitcoin_fork_claimer tool, you will need to have a Python 2.7 environment ready. Now, we generally recommend that people use a temporary Linux live boot session for handling their private keys, so do consider it. Linux security skills will become more valuable as your coins hopefully appreciate over time. However, the claiming script does work just fine on Windows, and this might be perfectly appropriate for your security needs. It is still far more secure than a random mobile wallet, but for larger amounts we suggest caution.

Download Git Standalone

To use Python under Windows to run the bitcoin_fork_claimer script we need a terminal environment on Windows to run it under. There are many other terminals, but since the tool is hosted on Github and we want to make these instructions mostly compatible with other guides on the site, the Git Bash terminal is the best option.

This is also the official Windows client for Git, and there is even a standalone version that avoids needing to install it. You can get it from the Windows download page of https://git-scm.com. You want to select the Standalone version that matches whether you have a 64-bit or 32-bit version of Windows (if you don't know, just choosing the 32-bit version will not cause problems on a 64-bit system):

git standalone

You can save it and then extract it to your Downloads directory unless you have a desire to keep it somewhere else.

git standalone extract

Once extracted, you can close the browser and open up the directory where you extracted it:

git standalone

The utility we want is the executable called git-bash.

git bash

If you double-click it, it should open and look something like this:

git bash first launch

Don't mind the text that looks like it might be an error message. It is just it setting up the first time it runs. You can close these Windows for now while we install Python

Download Python Installer

We must download Python 2.7 from python.org. The option should appear on the Downloads tab like so:

python download

Installing with all default settings is preferable:

install for all

It will install itself under C:\Python27\:

install dir

Once it is finished, you can close all the Windows and launch Git Bash again. Once the terminal opens, you can type /c/Python27/python.exe --version and press Enter. This will make sure that Python is present and executable from this environment. Also, this will simply output the version to make sure we are running Python 2.7.x which we require.

git bash version

Proceeding

You are now set up to run the bitcoin_fork_claimer tool which is covered in the next article:

How To Run The bitcoin_fork_claimer Script From A Windows System