Error
Mats Wichmann
mats at wichmann.us
Mon Dec 7 13:29:21 EST 2020
On 12/7/20 11:13 AM, Michael Torrie wrote:
> On 12/7/20 11:07 AM, Barry Fitzgerald wrote:
>> I did the pip install I did the pip install pygameThe pip install
>> pgzero I get this error C:\Users\barol>pip install pgzeroDefaulting
>> to user installation because normal site-packages is not
>> writeableCollecting pgzero Using cached pgzero-1.2-py3-none-any.whl
>> (69 kB)Collecting numpy Using cached
>> numpy-1.19.4-cp39-cp39-win_amd64.whl (13.0 MB)Collecting
>> pygame<2.0,>=1.9.2 Using cached pygame-1.9.6.tar.gz (3.2 MB)
>> ERROR: Command errored out with exit status 1: command:
>> 'c:\program files\python39\python.exe' -c 'import sys, setuptools,
>> tokenize; sys.argv[0] =
>> '"'"'C:\\Users\\barol\\AppData\\Local\\Temp\\pip-install-loo9yev7\\pygame_5aee70f17f294e14b6187b13f07afa31\\setup.py'"'"';
>> __file__='"'"'C:\\Users\\barol\\AppData\\Local\\Temp\\pip-install-loo9yev7\\pygame_5aee70f17f294e14b6187b13f07afa31\\setup.py'"'"';f=getattr(tokenize,
>> '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
>> '"'"'\n'"'"');f.close();exec(compile(code, __file__,
>> '"'"'exec'"'"'))' egg_info --egg-base
>> 'C:\Users\barol\AppData\Local\Temp\pip-pip-egg-info-rdmw_7gl'
>> cwd:
>> C:\Users\barol\AppData\Local\Temp\pip-install-loo9yev7\pygame_5aee70f17f294e14b6187b13f07afa31\
>> Complete output (17 lines):
>>
>> WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
>> Using WINDOWS configuration...
> The problem is there is no pre-compiled PyGame Zero package yet for
> Python 3.9. So your system is trying to compile it from source.
... which nearly always fails on Windows, unless you're previously
ensured your setup exactly matches what that project wants.
> Probably your best bet is to remove Python 3.9 and install Python 3.8.
You can check the status on pypi by searching for a package and then
clicking on "Download files". Doing that in this case shows that pygame
2.0 is indeed available for Python 3.9:
https://pypi.org/project/pygame/#files
BUT, above it's trying to compile pygame 1.9.2, because *it* presumably
doesn't have a Py3.9 version. So the guess is that pgzero is pinned to
a particular pygame version, and that version isn't available for 3.9,
so this story may be a little more complex than most of them are.
Unpacking it shows the requirement indeed excludes pygame 2.0:
pygame<2.0,>=1.9.2
More information about the Python-list
mailing list