我是这个论坛的新手,我想问你:
我正在尝试为python安装pygame和其他模块,有些工作,但有些不行!
例如,我们将采取pygame:
1.我的setuptools已完全升级
2.我使用python 3.6.0(python --version)
3.当我写:pip install pygame
时,此输出来了:
C:\Windows\system32>pip install pygame
收集pygame 使用缓存的pygame-1.9.2.tar.gz 从命令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\
是的,我知道已经有很多问题了:我尝试了很多,但没有任何对我有用:/ 如果你有一些建议,只需写评论,如果你需要一些电脑信息,也可以这样做! 谢谢你们!
电脑信息: 操作系统:Windows 10 Home,(不是LINUX!) CPU:Intel Core i5-6300HQ CPU 2.30GHz, 内存:8,00GB, 这是一个ACER, 256GB SSD, 500GB硬盘