我在保留包的Windows 7上进行了easy_install,但是当我运行import pyRserve
时,我收到以下导入错误。
我正在使用Python 2.7.5。
有什么建议吗?
Traceback (most recent call last):
File "<module1>", line 2, in <module>
File "C:\Python27\lib\site-packages\pyrserve-0.7.3-py2.7.egg\pyRserve\__init__.py", line 9, in <module>
from .rconn import connect
File "C:\Python27\lib\site-packages\pyrserve-0.7.3-py2.7.egg\pyRserve\rconn.py", line 7, in <module>
from . import rtypes
File "C:\Python27\lib\site-packages\pyrserve-0.7.3-py2.7.egg\pyRserve\rtypes.py", line 4, in <module>
import numpy
File "C:\Python27\lib\site-packages\numpy\__init__.py", line 137, in <module>
import add_newdocs
File "C:\Python27\lib\site-packages\numpy\add_newdocs.py", line 9, in <module>
from numpy.lib import add_newdoc
File "C:\Python27\lib\site-packages\numpy\lib\__init__.py", line 4, in <module>
from type_check import *
File "C:\Python27\lib\site-packages\numpy\lib\type_check.py", line 8, in <module>
import numpy.core.numeric as _nx
File "C:\Python27\lib\site-packages\numpy\core\__init__.py", line 5, in <module>
import multiarray
ImportError: DLL load failed: %1 is not a valid Win32 application.
答案 0 :(得分:0)
我使用64位Python,当我切换到32位时,它运行正常。
我猜这个包只配置为使用32位...