pip install pygame在Windows 8.1中不起作用但是我已经通过(C:\ Python34 \)给出了路径。我该怎么办?

时间:2018-01-23 19:07:31

标签: python python-3.x installation pygame pip

我试图在python 3.4.3中安装pygame,但它给出了错误,如图所示。但是,我已经给出了路径变量(C:\Python34),但它不起作用。

我该如何解决这个问题?

screenshot

2 个答案:

答案 0 :(得分:2)

You should do pip install pygame in the command prompt. If you do not have pip, install it.

答案 1 :(得分:1)

You're using the wrong thing. pip is an application like Python. It is not part of the Python library nor is it an integrated function, to use it you must open Command Prompt (assuming your on Windows) not the Python interpreter, to do this type in search (or Cortana) and enter "cmd", when it appears click on it.

Now that you have opened command prompt retry your commands in that window and it should work.