cheaptonersucks Posted May 13, 2021 Posted May 13, 2021 Hello I have been asked to install Pygame by the head of computing. I have never installed Pygame previously so I looked online and it looked pretty straight forward. I entered the command pip install Pygame at the command prompt, as the tutorial advised but the installation failed. The error implied that the ‘tunnel connection failed: 407 Proxy Authorisation Required’. The installation obviously can’t authenticate with the school proxy server, but I do not know how to bypass this? I did look if there are any MSI’s for Pygame and there is a downloads page on the Pygame site, but it’s not apparent as to which download that I require? The version of Python installed in school is 3.7.4 if that’s any help? Just wondered if anyone knows of a way of installing the correct version of Pygame for Python 3.7.4 without using the command line as I can’t bypass the proxy? Thanks!
Steve21 Posted May 13, 2021 Posted May 13, 2021 Pip allows proxy as a parameter or at least did last time I tried it Pip install —proxy http://blah.com:8080 Pygame etc Note that’s two - above seems to format odd on phone You can put a user:pass@ in front of blah if you need to, so might be worth trying it as an easy fix if that lets you Steve 1
FragglePete Posted May 13, 2021 Posted May 13, 2021 I was banging my head against the wall with this one recently as well. The PIP installer called within Python kept giving me WRONG SSL errors, etc. Trying to put together a new Python package with 3.9.5 to include things like Pygame, GUIZero, Python Turtle, etc. I deployed the Python .MSI ok with various command lines, etc but PIP just refused to play ball afterwards. Fixed it in the end by calling the PIP.exe directly (ie. not within Python). Installed everything within the Site Libraries folder as required. Pete 1
mavhc Posted May 13, 2021 Posted May 13, 2021 Quite often cmd line tools, esp cross platform ones, don't use the OS's CA cert list, so any TLS inspecting certs you've installed aren't picked up. Also wpad/pac settings 1
dhicks Posted May 13, 2021 Posted May 13, 2021 I have been asked to install Pygame by the head of computing. Not a solutuon to your problem, but if it's any help Replit supports Pygame: https://staging.replit.com/languages/pygame A browser-based system for editing and running code, it might make for a less bothersome way of supporting Python programming - no local installs to manage, and children can potentially work from home on any web browser. 2
mavhc Posted May 14, 2021 Posted May 14, 2021 Although if you've not taught them to install python at home, they're not going to be very good at actually using the skills they're learning 1
dhicks Posted May 14, 2021 Posted May 14, 2021 Although if you've not taught them to install python at home, they're not going to be very good at actually using the skills they're learning An excellent point, and one that many "low code" solutions seem to be missing - it's not neccesarily that people find programming difficult, it's the messing around with build environments / library installation / obtaining data files that makes for the barrier-to-entry for a lot of beginner programmers. You can teach someone a bit of Python (or whatever language you prefer) easily enough, and get them enthusiastic about applying it to some kind of real-world problem they want to solve, but they hit a point where they need to install a library or figure out how to get a CSV file from their desktop into their application and that's where a lot of people give up. 1
robk Posted May 14, 2021 Posted May 14, 2021 Although if you've not taught them to install python at home, they're not going to be very good at actually using the skills they're learning Having said that, it would be a good homework task maybe. Certainly improves network security if the "little hackers" are sandboxed off somewhere. Given the remote learning lessons recently web available solutions look quite a good fit. 1
supportman Posted May 14, 2021 Posted May 14, 2021 Not a solutuon to your problem, but if it's any help Replit supports Pygame: https://staging.replit.com/languages/pygame A browser-based system for editing and running code, it might make for a less bothersome way of supporting Python programming - no local installs to manage, and children can potentially work from home on any web browser. We are just moving to this, its brilliant and certainly the future. Pygame works well apparently. 1
cheaptonersucks Posted May 14, 2021 Author Posted May 14, 2021 Thanks to everyone for the suggestions. I will try offering replit.com initially, although I recall that the head of computing used to use this site some time ago. I don’t know why he stopped using it, but I will recommend it anyway. I don’t know why there isn’t a Python installer that has Pygame already packaged, although not having much knowledge of how add ons for Python work doesn’t help! Does anyone know exactly which version of Pygame I require for Python 3.7 please?
mavhc Posted May 14, 2021 Posted May 14, 2021 Hmm, seems that pygame 2 doesn't have msi, could download the .whl from https://github.com/pygame/pygame/releases/ and use pip install x:\path\to\pygame.whl Latest version will be the best for python 3.7 1
NotSoFast Posted May 15, 2021 Posted May 15, 2021 (edited) We are just moving to this, its brilliant and certainly the future. Pygame works well apparently.I've tried it a few times and never had much luck. It's not something I'd want to rely on (Pygame in replit, not replit itself). Edited May 15, 2021 by NotSoFast 1
supportman Posted May 17, 2021 Posted May 17, 2021 I've tried it a few times and never had much luck. It's not something I'd want to rely on (Pygame in replit, not replit itself). I think there have been some recent updates to make it work, they even advertise it working now completely.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now