python问题求助

请问一下,这种pygame下载好了但是仍显示无法调用的情况如何解决?

讨论数量: 1
Jason990420

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个月前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!