简体   繁体   English

麻烦在python 3.5上安装pygame

[英]trouble installing pygame on python 3.5

I have installed the whl file for pygame 1.9.2 for python 3.5 32 bit and have put it in "C:\\Python35\\Scripts". 我已经为python 3.5 32位的pygame 1.9.2安装了whl文件,并将其放在“ C:\\ Python35 \\ Scripts”中。 When i open a command window in the scripts folder and type 当我在scripts文件夹中打开命令窗口并键入

pip3 install pygame-1.9.2a0-cp35-none-win32.whl 

it says 它说

Fatal error in launcher: Unable to create process using '"'

I am following the instructions from here , I have heard it works for python 3.5. 我正在从这里按照说明进行操作,听说它适用于python 3.5。 I have been trying to figure this out for ages, can anyone help me on what to do next? 我已经尝试了很长时间了,有人可以帮我下一步做什么吗?

Here are instructions for users with the newer Python 3.5 : 以下是使用更新的Python 3.5的用户的说明:

I just successfully installed Pygame 1.9.2a0-cp35 on Windows and it runs with Python 3.5.1. 我刚刚在Windows上成功安装了Pygame 1.9.2a0-cp35,它与Python 3.5.1一起运行。

  • Install Python, and remember the install location 安装Python,并记住安装位置
  • Go here and download pygame-1.9.2a0-cp35-none-win32.whl 这里下载pygame-1.9.2a0-cp35-none-win32.whl
  • Move the downloaded .whl file to your python35/Scripts directory 将下载的.whl文件移至python35/Scripts目录
  • Open a command prompt in the Scripts directory ( Shift - Right click in the directory > Open a command window here ) Scripts目录中打开命令提示符( Shift Right click目录> Open a command window here
  • Enter the command: 输入命令:

    pip3 install pygame-1.9.2a0-cp35-none-win32.whl

  • If you get an error in the last step, try: 如果您在最后一步中遇到错误,请尝试:

    python -m pip install pygame-1.9.2a0-cp35-none-win32.whl

And that should do it. 那应该做到的。 Tested as working on Windows 10 64bit. 经测试可在Windows 10 64bit上运行。

Try to run 尝试跑步

python -m pip install pygame-1.9.2a0-cp35-none-win32.whl

This should be a workaround the "space problem" of pip on windows. 这应该是Windows上pip的“空间问题”的解决方法。

Hope this helps :) 希望这可以帮助 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM