windows安装pygame(python3.6)_当我试图安装PyGameforPython3.6时,Pip不起作用[过时]
我正在使用windows 10家庭版64位版本。我正在使用Python3.6 64位版本。我試圖通過運行python的干凈安裝來解決這個錯誤,但這并沒有解決問題。
我試圖通過pip安裝pygame,但產生了以下結果:C:\Windows\system32>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 "", line 1, in
File "C:\Users\*****~1\AppData\Local\Temp\pip-build-ciac4jty\pygame\setup.py", line 165, in
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\*****~1\AppData\Local\Temp\pip-build-ciac4jty\pygame\
是什么導致了這個錯誤?我該怎么解決?
總結
以上是生活随笔為你收集整理的windows安装pygame(python3.6)_当我试图安装PyGameforPython3.6时,Pip不起作用[过时]的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql主从配置访问_Mysql主从配
- 下一篇: tableau连接mysql_table