I used python3 -m pip install pygame==2.0.0
via non-rosetta terminal and got these errors:
ERROR: Command errored out with exit status 1:
command: /opt/homebrew/opt/python@3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/1q/4hfh5j_d715b0vm49lql6vl80000gn/T/pip-install-cqq2oily/pygame_3a311b7a5339480eb6bae08f88ff3fe6/setup.py'"'"'; __file__='"'"'/private/var/folders/1q/4hfh5j_d715b0vm49lql6vl80000gn/T/pip-install-cqq2oily/pygame_3a311b7a5339480eb6bae08f88ff3fe6/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 /private/var/folders/1q/4hfh5j_d715b0vm49lql6vl80000gn/T/pip-pip-egg-info-ig7pjjbc
cwd: /private/var/folders/1q/4hfh5j_d715b0vm49lql6vl80000gn/T/pip-install-cqq2oily/pygame_3a311b7a5339480eb6bae08f88ff3fe6/
ERROR: Could not find a version that satisfies the requirement pygame==2.0.0
ERROR: No matching distribution found for pygame==2.0.0
My homebrew, pip3 are all up to date.
Any help would be appreciated!
I already had the same problem: the pip
module only detected a pygame
version older than 2.0.0.
It always installed pygame 1.9.6.
Maybe you should:
I don't know how pip
works, but I updated it by typing
python3 -m pip install --upgrade pip
Then, when I typed again
python3 -m pip install pygame
pip
downloaded the 2.0.1 version of pygame
correctly.
Of course the modules come from Internet.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.