我被迫升级到Python 2.6并且使用Numerical Python时出现问题( NumPy )在Windows中使用Python 2.6。我收到以下错误...

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    from numpy.core.numeric import array,dot,all
  File "C:\svn\svn_urbansim\UrbanSimDev\Builds\working\urbansim\Tools\Python26\lib\site-packages\numpy\__init__.py", line 39, in <module>
    import core
  File "C:\svn\svn_urbansim\UrbanSimDev\Builds\working\urbansim\Tools\Python26\lib\site-packages\numpy\core\__init__.py", line 5, in <module>
    import multiarray
ImportError: Module use of python25.dll conflicts with this version of Python.

现有模块似乎正在尝试使用 python25.dll 文件。有没有办法告诉它使用 python26.dll 文件而不修改源代码?

有帮助吗?

解决方案

你是如何安装它的? NumPy目前没有Python 2.6二进制文件。

如果你有 LAPACK / ATLAS / BLAS 等等,你应该能够从源代码编译numpy的开发环境。否则,我认为如果你需要NumPy,你会坚持在Windows上使用Python 2.5。

NumPy的下一个版本应该有一个2.6二进制文件,它很可能在下个月左右出来。

[编辑]:似乎pygame开发人员在Windows上为Python 2.6创建了NumPy 1.2.1二进制文件,可用这里

scroll top