ImportError:dlopen找不到符号:_PyCObject_Type

时间:2018-12-23 06:31:03

标签: python pygame

我正在尝试在Mac上安装Pygame,并且在以下this
上使用了该方法 一切正常,直到我尝试在Eclipse中导入Pygame并收到以下错误消息:

Traceback (most recent call last):   
File "/Users/willyocun/Documents/Comp Sci/PyGame Test/PyGameTest.py", line 7, in <module>     
from pygame import *    
File "/Users/willyocun/Desktop/pygame/__init__.py", line 133, in <module>     from pygame.base import * 
ImportError: dlopen(/Users/willyocun/Desktop/pygame/base.so, 2): Symbol not found: _PyCObject_Type   
Referenced from: /Users/willyocun/Desktop/pygame/base.so  
Expected in: flat namespace  in /Users/willyocun/Desktop/pygame/base.so .

我不知道该怎么做(我正在使用Python 3.7 btw)

0 个答案:

没有答案