Error while installing pygame using pip for python 3.4

微笑、不失礼 提交于 2019-12-24 14:35:00

问题


Sorry, thought i edited to say i am on windows 64 bit When trying to install Pygame using pip, I get the following error:

"requirement 'pygame.whl' looks like a file name, but the file does not exist pygame.whl is not a valid wheel filename."

I have my file paths right and pip is working. I have attempted to install 32 bit and 64 bit pygame but neither is working. In the command prompt I enter "pip install pygame.whl" (I renamed the file which I don't think should matter and it is saved under downloads).

How can I resolve this error?


回答1:


It seems there is no PyPi package for pygame. On Ubuntu / Debian you should be able to simply do:

sudo apt-get install python-pygame

Should be similar for other package managers on other distros.

On windows, use the download the provided installer:




回答2:


Thankyou so much for your help ventsyv, i finally figured it out. i believe it was an issue with the installer from pygames site. i found another site with a link to pygame and specifically for python 3.4.2. i now have no error messages and its working great. Thanks for putting up with me haha.



来源:https://stackoverflow.com/questions/28997501/error-while-installing-pygame-using-pip-for-python-3-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!