简体   繁体   English

Python ImportError:DLL加载失败:找不到指定的模块

[英]Python ImportError: DLL load failed: The specified module could not be found

I recently downloaded and installed pygame. 我最近下载并安装了pygame。 I tested it with the following code. 我用以下代码对其进行了测试。

import pygame

I received the following error: 我收到以下错误:

C:\Python34>python test.py
Traceback (most recent call last):
File "test.py", line 1, in <module>
    import pygame
File "C:\Python34\lib\site-packages\pygame\__init__.py", line 95, in     <module>
    from pygame.base import *
ImportError: DLL load failed: The specified module could not be found.

I currently have Python 3.4 32 bit and have downloaded pygame-1.9.2a0.win32-py3.2 and installed it. 我目前有32位Python 3.4,并下载了pygame-1.9.2a0.win32-py3.2并安装了它。 I tried uninstalling and reinstalling multiple times. 我尝试多次卸载并重新安装。 What am I doing wrong? 我究竟做错了什么?

Pygame doesn't work for Python 3.4. Pygame不适用于Python 3.4。 The pygame that you downloaded is for Python 3.2. 您下载的pygame适用于Python 3.2。 If you download Python 3.2, you should be able to use pygame. 如果您下载Python 3.2,则应该可以使用pygame。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ImportError: DLL 加载失败:在 python 中找不到指定的模块 - ImportError: DLL load failed: The specified module could not be found in python Python:ImportError:DLL加载失败:找不到指定的模块 - Python: ImportError: DLL load failed: The specified module could not be found Python 2.7:ImportError:DLL加载失败:找不到指定的模块 - Python 2.7: ImportError: DLL load failed: The specified module could not be found Skilearn导入错误:DLL加载失败:找不到指定的模块 - Skilearn ImportError: DLL load failed: The specified module could not be found 对象检测 - 导入错误:DLL 加载失败:找不到指定的模块 - Object detection - ImportError: DLL load failed: The specified module could not be found ImportError:DLL加载失败:在PyCharm中找不到指定的模块 - ImportError: DLL load failed: The specified module could not be found in PyCharm Windows 上的 Tensorflow - ImportError:DLL 加载失败:找不到指定的模块 - Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found tensorflow 2.3.1 导入错误:DLL 加载失败:找不到指定的模块 - tensorflow 2.3.1 ImportError: DLL load failed: The specified module could not be found Windows,ImportError:DLL加载失败:找不到指定的模块 - windows, ImportError: DLL load failed: The specified module could not be found anaconda3中的ImportError:DLL加载失败:找不到指定的模块 - ImportError in anaconda3 : DLL load failed: The specified module could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM