讨论数量: 1

The key point is how you installed the pygame library

Where the python

  • Using print(sys.exec_prefix) in your script to find where you python installed, also to confirm which python executed, or
  • For Spyder, tools > preferences > python interpreter > use the following python interpreter

For Anaconda environment, how do I Install Python Packages in Anaconda?

  • Anaconda Navigator > Environments > Select the environment > Not Installed > (checked) pygame > Apply, or
  • Open the terminal > conda activate your_environment > conda install pygame > conda list, or
  • Open the the Anaconda Prompt > pip install pygame
1个月前 评论