Trouble trying to get started with pygame

MRAB python at mrabarnett.plus.com
Fri Nov 1 23:14:10 EDT 2019


On 2019-11-02 01:55, originallmoney at gmail.com wrote:
> On Friday, November 1, 2019 at 1:05:35 AM UTC-4, MRAB wrote:
>> On 2019-11-01 03:47, originallmoney at gmail.com wrote:
>> > It's been years since I've done anything with Python, and it wasn't a language I was terribly familiar with even then. I'm using Python 3.8 on my Windows 7 laptop. Python itself works so far as I can tell. I can get it to import pip without problems, but, when I try to get going with pygame, I hit a roadblock.
>> > 
>> > I have pygame 1.9.6.tar.gz. Apparently, I don't have the means of unzipping it, yet, I think I've seen things on other forums suggesting that Python can do that for me. Is that true?
>> > 
>> Actually, you do have the means: Python!
>> 
>> But there's a simpler way.
>> 
>> > I've been trying to use "pip install" (Written just like that, minus the quotes, of course), yet, it tells me that's a syntax error.
>> > 
>> > Is there a way of inputting this that I'm not aware of? I've seen various versions of people calling the command, with things like "pip.install" or "-m pip install -U pygame -user" or something like that, are THOSE what I should be trying or...am I completely off-base right now?
>> > 
>> Those commands are for the Windows command prompt.
>> 
>> > Any help would be appreciated, as I'm losing patience with it at the moment.
>> > 
>> 
>> Go to Christoph Gohlke's site at:
>> 
>>      https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame
>> 
>> Download one of these "wheel" files:
>> 
>>      pygame‑1.9.6‑cp38‑cp38‑win_amd64.whl for 64-bit
>> 
>> or:
>> 
>>      pygame‑1.9.6‑cp38‑cp38‑win32.whl for 32-bit
>> 
>> At the Windows command prompt type:
>> 
>>      py -3.8 -m pip install "path/to/wheel"
> 
> Does it matter where I place pygame? I was going to put it into my Scripts folder, as I'm pretty sure I already have a path that goes there.
> 
It'll be installed into Python's site-packages folder.


More information about the Python-list mailing list