---
id: 1n4vp7yu1fEw9bU9iwB4K7JKSeHALhywxgUY4spkR93o
title: "README.MD"
path: "/NOUMENA/README.MD"
kind: gdoc
words: 520
source_bytes: 3410
publisher: "Anticloud FZ LLE — Lois-Kleinner Alpasan"
canonical: https://quallia.org/doc/1n4vp7yu1fEw9bU9iwB4K7JKSeHALhywxgUY4spkR93o
download: /dl/1n4vp7yu1fEw9bU9iwB4K7JKSeHALhywxgUY4spkR93o
---

# README.MD

> /NOUMENA/README.MD

README.MD | Opening Python (.Py) Files
This guide provides instructions on how to set up your environment to run a regular Python executable. This involves installing Python and the necessary pygame library. Let’s begin.
The Book of Internet Safety - QUALIA
Table of Contents
1. Prerequisites
2. Step 1: Install Python
   * Windows
   * macOS
   * Linux
3. Step 2: Install Dependencies
4. Step 3: Run the Game
Prerequisites
* A computer running Windows, macOS, or a Linux distribution.
* An internet connection to download the required files.
Step 1: Install Python
If you do not have Python installed, follow these instructions for your operating system.
Windows
1. Go to the official Python website: python.org/downloads/
2. Download the latest installer for Windows.
3. Run the installer. Crucially, on the first screen of the installation, check the box that says "Add Python to PATH". This will allow you to run Python from the command line easily.
4. Complete the installation with the default settings.
5. To verify the installation, open Command Prompt (cmd.exe) and type python --version. It should display the version you just installed.
macOS
Modern versions of macOS come with a version of Python pre-installed. However, it's recommended to install the latest version using Homebrew for better management.
1. First, install Homebrew if you don't have it. Open the Terminal and run:
/bin/bash -c "$(curl -fsSL [https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh](https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh))"
2. 3. Once Homebrew is installed, install the latest version of Python:
brew install python
4. 5. To verify, close and reopen your Terminal, then type python3 --version.
Linux
Most Linux distributions come with Python pre-installed. You can check your version by opening a terminal and running python3 --version. If you need to install it or get the latest version, use your distribution's package manager.
* For Debian/Ubuntu-based systems:
sudo apt update
sudo apt install python3 python3-pip
* * For Fedora/CentOS-based systems:
sudo dnf install python3 python3-pip
* Step 2: Install Dependencies
The game requires the pygame library. The other imported modules (sys, os, random, time, tkinter) are part of the standard Python library and do not need to be installed separately.
1. Open your command line or terminal.
2. Run the following command to install pygame:
pip install pygame
3. 4. If you have multiple Python versions, you may need to use pip3 instead of pip:
pip3 install pygame
5. Step 3: Run the Python File!
Once Python and pygame are installed, we’re now ready to open Python files! Be sure before you run any .py file, you absolutely trust the individual and the contents of the file you have been sent!
In this case, let’s take an example from our public repository, Bandersnatched!, or bandersnatch.py
1. Save the bandersnatch.py file to a location on your computer (e.g., your Desktop).
2. Open your command line or terminal.
3. Navigate to the directory where you saved the file. For example, if it's on your Desktop:
cd Desktop
4. 5. Run the script using the Python command:
python bandersnatch.py
6. 7. Or, depending on your system's configuration:
python3 bandersnatch.py
8. The new Python window should now appear.
Congratulations!


You can now have fun.
