我使用pip代表Python(x,y)安装traitsui 5.1.0,目的是加载python模块traits.api
,但出现错误:
Traceback (most recent call last):
File "test.py", line 1, in <module>
import traits.api
File "C:\Python27\lib\site-packages\traits\api.py", line 26, in <module>
from .trait_base import Uninitialized, Undefined, Missing, Self, python_version
File "C:\Python27\lib\site-packages\traits\trait_base.py", line 135, in <module>
from . import ctraits
ImportError: DLL load failed: The specified procedure could not be found.
我发现了一个类似的问题,但谷歌没有回复:https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/OgJDjH-nlQo
Dependency Walker检测到丢失的文件:
MSVCR90.DLL
API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
DCOMP.DLL
GPSVC.DLL
IESHIMS.DLL
所以我检查了他们的可用性:Win 7, 64 bit, dll problems。但它们可以在我的机器上使用(MS Web Tools和SDK)!我需要复制它们吗?谢谢你给我一个主意。