gpt4 book ai didi

python - 安装numpy - 系统找不到指定的文件(msvcr90.dll)

转载 作者:行者123 更新时间:2023-12-01 05:05:49 28 4
gpt4 key购买 nike

过去几个小时我一直在尝试安装 numpy,但我最终放弃并寻求帮助。

首先,我尝试过:

我首先收到“无法找到 vcvarsall.bat”错误,因此我按照此问题 ( error: Unable to find vcvarsall.bat ) 的建议安装了 Microsoft Visual V++ 2008 Express。这绝对没有任何作用。

然后我尝试通过安装 mingw32 并使用以下命令创建 disutils.cfg 文件来完全使用不同的编译器:

[build]
compiler = mingw32

并将其放入Python27\Lib\distutils

这消除了“无法找到 vcvarsall.bat”错误,但现在我遇到了有关 msvcr90.dll 的新错误。

我不知道如何解决它,我很累,只想 numpy 哈哈。这是我运行 python setup.py install 时的完整输出:

\numpy-1.8.1>python setup.py install
Running from numpy source directory.
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option:
'test_suite'
warnings.warn(msg)
non-existing path in 'numpy\\distutils': 'site.cfg'
F2PY Version 2
blas_opt_info:
blas_mkl_info:
libraries mkl,vml,guide not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\Python
27\\libs']
NOT AVAILABLE

openblas_info:
libraries not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\Python27\\libs']
NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['C:\\Python27\\lib', 'C:\\', '
C:\\Python27\\libs']
NOT AVAILABLE

atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\
Python27\\libs']
NOT AVAILABLE

C:\Users\Christie\Downloads\numpy-1.8.1\numpy-1.8.1\numpy\distutils\system_info.
py:1521: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
blas_info:
libraries blas not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\Python27\\libs'
]
NOT AVAILABLE

C:\Users\Christie\Downloads\numpy-1.8.1\numpy-1.8.1\numpy\distutils\system_info.
py:1530: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
warnings.warn(BlasNotFoundError.__doc__)
blas_src_info:
NOT AVAILABLE

C:\Users\Christie\Downloads\numpy-1.8.1\numpy-1.8.1\numpy\distutils\system_info.
py:1533: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
warnings.warn(BlasSrcNotFoundError.__doc__)
NOT AVAILABLE

non-existing path in 'numpy\\lib': 'benchmarks'
lapack_opt_info:
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\Python
27\\libs']
NOT AVAILABLE

NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in C:\Python27\lib
libraries lapack_atlas not found in C:\Python27\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries ptf77blas,ptcblas,atlas not found in C:\Python27\libs
libraries lapack_atlas not found in C:\Python27\libs
numpy.distutils.system_info.atlas_threads_info
NOT AVAILABLE

atlas_info:
libraries f77blas,cblas,atlas not found in C:\Python27\lib
libraries lapack_atlas not found in C:\Python27\lib
libraries f77blas,cblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries f77blas,cblas,atlas not found in C:\Python27\libs
libraries lapack_atlas not found in C:\Python27\libs
numpy.distutils.system_info.atlas_info
NOT AVAILABLE

C:\Users\Christie\Downloads\numpy-1.8.1\numpy-1.8.1\numpy\distutils\system_info.
py:1427: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
warnings.warn(AtlasNotFoundError.__doc__)
lapack_info:
libraries lapack not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\Python27\\lib
s']
NOT AVAILABLE

C:\Users\Christie\Downloads\numpy-1.8.1\numpy-1.8.1\numpy\distutils\system_info.
py:1438: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
warnings.warn(LapackNotFoundError.__doc__)
lapack_src_info:
NOT AVAILABLE

C:\Users\Christie\Downloads\numpy-1.8.1\numpy-1.8.1\numpy\distutils\system_info.
py:1441: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
warnings.warn(LapackSrcNotFoundError.__doc__)
NOT AVAILABLE

C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option:
'define_macros'
warnings.warn(msg)
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler opti
ons
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler opt
ions
running build_src
build_src
building py_modules sources
building library "npymath" sources
'gcc' is not recognized as an internal or external command,
operable program or batch file.
Looking for python27.dll
Building msvcr library: "C:\Python27\libs\libmsvcr90.a" (from C:\Windows\winsxs\
amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_99b61f5e8371c1d4\msvc
r90.dll)
error: [Error 2] The system cannot find the file specified

最佳答案

您可以直接使用二进制可执行文件安装,而不是从源代码安装。为您提供 32 位 http://docs.scipy.org/doc/numpy/user/install.html#windows或者正如您在 http://www.lfd.uci.edu/~gohlke/pythonlibs/ 中指出的 64 位版本

[编辑:根据评论进行更改并添加 64 位版本的链接]

关于python - 安装numpy - 系统找不到指定的文件(msvcr90.dll),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25072357/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com