Unable to install Pygame using pip

2019-01-08 16:28发布

I'm trying to install Pygame. I am running Windows 7 with Enthought Python Distribution. I successfully installed pip, but when I try to install Pygame using pip, I get the following error:

"Could not install requirement Pygame because of HTTP error HTTP error 400: Bad request for URL ..."

I can't find anything about this issue with a Google search, but I did find another Stack Overflow question that prompted the asker to use the following command:

pip install hg+http://bitbucket.org/pygame/pygame

This gave me the following error:

Cannot find command hg

I'm not sure what else to do, as everything I find with a Google search is for Mac, so I don't know how well I can follow those instructions on Windows.

14条回答
冷血范
2楼-- · 2019-01-08 16:58

I did use these instructions here from the official site.
But i had to change the python3 part of the command to just py.

查看更多
孤傲高冷的网名
3楼-- · 2019-01-08 17:02

Just

sudo pip install pygame

worked for me

查看更多
登录 后发表回答