Skip to content

Latest commit

 

History

History
76 lines (40 loc) · 3.73 KB

INSTALLING_PYTHON.md

File metadata and controls

76 lines (40 loc) · 3.73 KB

Installing Python

This step is ONLY required if you want to use the scripts included with this guide.

If you already have Python 3.6.0 or greater, or you do not wish to use the included scripts, you can skip to the next section of the guide.

Optionally you can use the latest release of Hakchi2 or manually hex edit the ROM headers/footers (but the later is beyond the scope of this guide).

The installed Python version must be version 3.6.0 or above and is available HERE. 2.7 has been tested and is confirmed not working. 3.6.0 and greater have been tested and are confirmed working up to 3.6.3.

Let's see if Python is installed first. To get to the command line, open the Windows Start menu and type command in the search bar. Select Command Prompt from the search results.

In the Command Prompt window you just opened, type the following and press Enter.

C:>python

If Python is installed and in your path, then this command will run python.exe and show you the version number.

alt txt

Otherwise, you will see:

python is not recognized as an internal or external command, operable program or batch file.

In this case, you need to download and install Python 3.6.3 and then add it to your path.

Download and install Python 3.6.3 for Windows

Find and download the Windows installer file that matches your system.

Open the installer to start the installation wizard. Follow the instructions and make a note of where Python is installed on your system.

When installing Python there is an option to add it to the path, if you checked that box you can skip ahead, but if you run into any issues try the instructions below.

Add Python to path

In the Start menu, search for advanced system settings and select View advanced system settings.

In the window that appears, click Environment Variables near the bottom right.

alt txt

In the next window, find and select the user variable named Path and click Edit to change its value. The value for this variable is a semi-colon-delimited list of file locations.

alt txt

Scroll to the end of the value, add a semi-colon, and then add the path of the folder containing python.exe. On newer versions of Windows, editing PATH will show a list. Just add said path as an entry at the end.

(If you do not know where your python.exe is, you can search for it. Instructions below)

Click OK to save this change.

If you do not have a user variable named Path, click the New… button.

Add a variable named Path and make its value the absolute path of the folder containing your python.exe.

Finding python.exe

If you do not know where Python was installed, search for python.exe in the Windows menu.

Right-click the file name in the results, select Properties, and find Location.

Copy the location and add it to your path variable.

Confirm addition to path

Open a new command prompt and re-run the original command:

C:>python

to confirm that Python 3.6.0 is installed and added to your path.

Now that that's done you can move onto the next part of the guide...