在IDLE上尝试导入VPython时如下 -
from visual import *
我收到以下错误消息 -
ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from visual import *
File "C:\Python34\Lib\site-packages\visual\__init__.py", line 1, in <module>
from .visual_all import *
File "C:\Python34\Lib\site-packages\visual\visual_all.py", line 1, in <module>
from vis import version
File "C:\Python34\Lib\site-packages\vis\__init__.py", line 3, in <module>
from .cvisual import (vector, dot, mag, mag2, norm, cross, rotate,
SystemError: initialization of cvisual raised unreported exception
可能是什么原因?我该如何解决这个问题?
我小心翼翼地安装所有依赖项以及VPython包,即TTFQuery,Fonttools和Polygon。所有的包,我的意思是甚至numpy,从Christoph Gohlke的网站上可用的二进制文件(轮文件)安装