Fic*_*ije 4 python installation pygame pip
我最近才开始学习 Python 编程。目前我正在尝试安装 pygame,但我不断收到相同的错误:
C:\WINDOWS\system32>python -m pip install pygame
Collecting pygame
Using cached pygame-1.9.2.tar.gz
Complete output from command 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\filip\appdata\local\temp\pip-build-0xsf1b\pygame\setup.py", line 165, in <module>
extensions = read_setup_file('Setup')
File "C:\Python33\lib\distutils\extension.py", line 164, in read_setup_file
line = expand_makefile_vars(line, vars)
File "C:\Python33\lib\distutils\sysconfig.py", line 430, in expand_makefile_vars
s = s[0:beg] + vars.get(m.group(1)) + s[end:]
TypeError: Can't convert 'NoneType' object to str implicitly
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\filip\appdata\local\temp\pip-build-0xsf1b\pygame\
Run Code Online (Sandbox Code Playgroud)
我已经浏览了许多有类似问题的帖子,但没有一个有完全相同的问题,和/或他们关注不同的软件包和操作系统。此外,我尝试了一些解决这些问题的方法,但对我没有任何效果(我尝试升级 pip、使用 easy_install 进行安装以及其他一些选项,不幸的是,我现在甚至无法回忆起来......)。
如果有人能帮助我解决这个问题,我将不胜感激。我知道这可能是一个不相关或“新手”的问题,但老实说,我试图自己找到解决方案,但真的不知道该怎么做。我也从未真正接受过计算机科学方面的教育,所以所有这些事情都让我感到沮丧和困惑,并不断阻碍学习过程(这已经够难了)。
我使用的是 Windows 10,python 3.3 64 位。
谢谢!
归档时间: |
|
查看次数: |
13088 次 |
最近记录: |