我最近得到了 python 3.6,我正在安装 python 包。到目前为止,请求已经奏效,但对于 pygame,我收到一个错误:
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\Nicholas\AppData\Local\Temp\pip-build-xufd58ed\pygame\setup.py", line 165, in <module>
extensions = read_setup_file('Setup')
File "c:\program files\python36\lib\distutils\extension.py", line 171, in read_setup_file
line = expand_makefile_vars(line, vars)
File "c:\program files\python36\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\Nicholas\AppData\Local\Temp\pip-build-xufd58ed\pygame\
安装其他软件包(例如熊猫)时,我遇到了类似的错误,错误可能是软件包还没有为 python 3.6 或其他东西准备好吗?我正在运行 Windows 10 64 位
请帮忙,尼克