使用pip安装PyGame时出错

时间:2017-11-30 23:30:18

标签: python python-3.x pygame pip

我尝试pip install pygame时出现此错误:

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\Kinhhy\AppData\Local\Temp\pip-build-_7qz1tzq\pygame\setup.py", line 165, in <module>
        extensions = read_setup_file('Setup')
      File "c:\program files (x86)\python37-32\lib\distutils\extension.py", line 171, in read_setup_file
        line = expand_makefile_vars(line, vars)
      File "c:\program files (x86)\python37-32\lib\distutils\sysconfig.py", line 407, in expand_makefile_vars
        s = s[0:beg] + vars.get(m.group(1)) + s[end:]
    TypeError: can only concatenate str (not "NoneType") to str

我已经阅读了大量有相同问题的帖子,但没有人修复过。

我试过了:

  • 升级pip
  • 安装正确的.whl脚本
  • 使用--upgrade
  • 使用easy_install
  • 重新安装我的点子
  • 删除pygame并重新安装
  • 并尝试调试脚本

我使用Windows 10和CPython 3.7,32位。

谢谢!

0 个答案:

没有答案