【问题标题】:Import error: Module use of python27.dll conflicts with this version of python导入错误:python27.dll的模块使用与此版本的python冲突
【发布时间】:2014-03-06 21:36:29
【问题描述】:

导入系统 sys.path.insert(1,"C:/Users/ravir_000/Desktop/python_CS105/python_CS105/Python27/Lib/site-packages") 导入数学 随机导入 导入pygame 从 pygame.locals 导入 *

pygame.init()

你如何摆脱错误?导入错误:python27.dll 的模块使用与此版本的 python 冲突。几个小时前我正在研究这个,它工作正常。当我进入课堂时,它开始给我这个错误。我尝试安装/重新安装 pyscripter 和 pygame,但它仍然无法正常工作。我确信我的 pygame 路径是正确的。有什么想法吗?

【问题讨论】:

    标签: python pygame importerror


    【解决方案1】:

    您正在尝试将适用于 python 2.7 的 pygame 发行版与不同版本的 python 一起使用。

    您应该下载并使用适当的版本。

    如果安装正确,则不需要sys.path.insert

    【讨论】:

      猜你喜欢
      • 2017-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-16
      • 2021-09-29
      • 1970-01-01
      相关资源
      最近更新 更多