This is a simple question. I have been making a game, and I wanted some of my friends to be able to download it online. Do they have to have pygame and python installed on t
I'm not sure how to deal with installing python, but I added this bit of code to the beginning of my most recent program which is designed to automatically install pygame on launch through cmd using pip.
import os
try:
import pygame
except:
try:
print("Attempting to install pygame...")
os.system('py -m pip install pygame')
import pygame
except:
try:
os.system('python -m pip install pygame')
import pygame
except:
print("Error, failed to install pygame libraries")
input("Press enter to exit...")
quit()