我是这个论坛的新手,我想问你:我正在尝试为 python 安装 pygame 和其他模块,有些工作,但有些没有!例如,我们将使用 pygame: 1. 我的 setuptools 已完全升级 2. 我使用 python 3.6.0 (python --version) 3. 当我写:pip install pygame
时,这个输出来:
C:\Windows\system32>pip install pygame
使用缓存的 pygame-1.9.2.tar.gz 收集 pygame 命令 python setup.py egg_info 的完整输出:
WARNING, No "Setup" File Exists, Running "config.py"
Using WINDOWS configuration...
Path for SDL not found.
Too bad that is a requirement! Hand-fix the "Setup"
Path for FONT not found.
Path for IMAGE not found.
Path for MIXER not found.
Path for PNG not found.
Path for JPEG not found.
Path for PORTMIDI not found.
Path for COPYLIB_tiff not found.
Path for COPYLIB_z not found.
Path for COPYLIB_vorbis not found.
Path for COPYLIB_ogg not found.
If you get compiler errors during install, doublecheck
the compiler flags in the "Setup" file.
Continuing With "setup.py"
Error with the "Setup" file,
perhaps make a clean copy from "Setup.in".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\stein\AppData\Local\Temp\pip-build-ln36l5el\pygame\setup.py", line 165, in <module>
extensions = read_setup_file('Setup')
File "c:\program files (x86)\python36-32\lib\distutils\extension.py", line 171, in read_setup_file
line = expand_makefile_vars(line, vars)
File "c:\program files (x86)\python36-32\lib\distutils\sysconfig.py", line 410, in expand_makefile_vars
s = s[0:beg] + vars.get(m.group(1)) + s[end:]
TypeError: must be str, not NoneType
----------------------------------------
和错误:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\stein\AppData\Local\Temp\pip-build-ln36l5el\pygame\
是的,我知道对此已经有很多问题:我尝试了很多,但对我没有任何帮助:/如果您有一些建议,只需写评论,如果您需要一些电脑信息,也这样做!感谢你们!
PC 信息:操作系统:Windows 10 Home,(不是 LINUX!) CPU:Intel Core i5-6300HQ CPU 2.30GHz,RAM:8,00GB,ACER,256GB SSD,500GB HDD