答案 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.