python - 在 Intellij IDEA 中导入 pygame

标签 python import intellij-idea pygame

我使用intellij idea插件进行python开发。我想将 pygame 模块导入到我的项目中,但每次出现错误“ImportError: No module named 'pygame'”。我试图将 pygame lib 文件夹添加到 dependencies 但它没有用,我也将它添加到 library 但它也没有用。谁能帮我解决这个问题。

谢谢

最佳答案

您可以尝试将 pygame 库安装到您的 python 目录,但您可能必须将 python 设置为 32 位才能运行,不知道它在 Windows 上如何运行。在 Mac 上虽然有几个教程。

关于python - 在 Intellij IDEA 中导入 pygame,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16874716/

相关文章:

android - 导入 Android Studio 项目

tomcat - Intellij 2017.3 中缺少 Tomcat 插件

java - Intellij 错误 :(3, 4) java:-source 8 中不支持模块(使用 -source 9 或更高版本来启用模块)

python - 如何在 Alembic 升级脚本中执行插入和更新?

python - 查找多词短语的同义词

python - 用 `validatecommand` 选项替换 ttk.Entry 小部件中的选定条目

php - 我无法将 SQL 数据库导入 EasyPHP

Emacs:将 CSV 导入组织模式

java - 为什么 IntelliJ 显示 "Duplicated code fragment (x lines long)"警告?

python - 向 urllib.request.read 传递字符串但获取字节属性错误