簡體   English   中英

如何使用 python 3.8.3 安裝 pygame?

[英]How do I install pygame with python 3.8.3?

我使用 python 3.8.3 和 Spyder 4 作為我的編輯器。 I am trying to install pygame but when I execute my program I'm working on, I get this error ModuleNotFoundError: No module named 'pygame' I have tried using pip install pygame and python -m pip install pygame in the command window and they全部安裝 pygame 但由於某種原因,當我執行我的程序時,我仍然收到“沒有名為 'pygame' 的模塊”錯誤。 我在這里做錯了嗎? 我應該怎么做才能讓它工作?

At the moment, 6/16/2020, you cannot install the pygame libraries in python 3.8 with pip install pygame, but you can install them with a particular version of them, still for dev. 您可以使用此版本在命令行中安裝 Python 3.8:

pip install pygame==2.0.0.dev6

希望你覺得這有幫助

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM