pygame安装不了
(venv) D:\Plane_game>pip install pygame
Collecting pygame
Downloading https://files.pythonhosted.org/packages/0f/9c/78626be04e193c0624842090fe5555b3805c050dfaa81c8094d6441db2be/pygame-1.9.6.tar.gz (3.2MB)
100% |████████████████████████████████| 3.2MB 6.8MB/s
Complete output from command python setup.py egg_info:
WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
Using WINDOWS configuration...
Download prebuilts to "prebuilt_downloads" and copy to "./prebuilt-x64"? [Y/n]Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\s1155133512\AppData\Local\Temp\pip-install-av5hixl8\pygame\setup.py", line 194, in <module>
buildconfig.config.main(AUTO_CONFIG)
File "C:\Users\s1155133512\AppData\Local\Temp\pip-install-av5hixl8\pygame\buildconfig\config.py", line 210, in main
deps = CFG.main(**kwds)
File "C:\Users\s1155133512\AppData\Local\Temp\pip-install-av5hixl8\pygame\buildconfig\config_win.py", line 576, in main
and download_win_prebuilt.ask(**download_kwargs):
File "C:\Users\s1155133512\AppData\Local\Temp\pip-install-av5hixl8\pygame\buildconfig\download_win_prebuilt.py", line 302, in ask
reply = raw_input(
EOFError: EOF when reading a line
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\s1155133512\AppData\Local\Temp\pip-install-av5hixl8\pygame\
请问老师怎么回事 怎么解决
正在回答
同学你好:
同学电脑中安装的是pthon3.8的版本吗?3.8版本在安装pygame时会有兼容问题。建议同学安装其他版本的Python后再安装pygame进行使用。
如果我解决了同学的问题,请采纳!学习愉快^_^。
- 参与学习 人
- 提交作业 2727 份
- 解答问题 8160 个
想要进入Python Web、爬虫、人工智能等高薪领域,你需要掌握本阶段的Python基础知识,课程安排带你高效学习轻松入门,学完你也能听得懂Python工程师的行业梗。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星