簡體   English   中英

Python ImportError:DLL加載失敗:找不到指定的模塊

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

我最近下載並安裝了pygame。 我用以下代碼對其進行了測試。

import pygame

我收到以下錯誤:

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.

我目前有32位Python 3.4,並下載了pygame-1.9.2a0.win32-py3.2並安裝了它。 我嘗試多次卸載並重新安裝。 我究竟做錯了什么?

Pygame不適用於Python 3.4。 您下載的pygame適用於Python 3.2。 如果您下載Python 3.2,則應該可以使用pygame。

暫無
暫無

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

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