在Windows7 64bit上运行“pip install numpy”时出现“错误:无
发布时间:2020-12-13 22:40:57 所属栏目:Windows 来源:网络整理
导读:我正在 windows7 64bit上运行pip install numpy而我收到错误:无法找到vcvarsall.bat 我已经用pip安装了一些软件包,例如: pyzmq,pysolr,enum等,所以我真的不知道出了什么问题. 唯一可能不同的是我安装了.NET framework version 4.5 – 我怀疑这可能是原因,
我正在
windows7 64bit上运行pip install numpy而我收到错误:无法找到vcvarsall.bat
我已经用pip安装了一些软件包,例如: pyzmq,pysolr,enum等,所以我真的不知道出了什么问题. 唯一可能不同的是我安装了.NET framework version 4.5 – >我怀疑这可能是原因,因为在某些帖子中我看到它可能与Visual Studio有关(我没有安装) 完整的错误/追溯: Downloading/unpacking numpy Running setup.py (path:c:userszebraappdatalocaltemppip_build_zebranumpysetup.py) egg_info for package numpy Running from numpy source directory. warning: no files found matching 'toolspy3tool.py' warning: no files found matching '*' under directory 'docf2py' warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*.pyo' found anywhere in distribution warning: no previously-included files matching '*.pyd' found anywhere in distribution Installing collected packages: numpy Running setup.py install for numpy non-existing path in 'numpydistutils': 'site.cfg' F2PY Version 2 blas_opt_info: blas_mkl_info: libraries mkl,vml,guide not found in ['C:Python27lib','C:','C:Python27libs'] NOT AVAILABLE openblas_info: libraries not found in ['C:Python27lib','C:Python27libs'] NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in ['C:Python27lib','C:Python27libs'] NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,'C:Python27libs'] NOT AVAILABLE blas_info: libraries blas not found in ['C:Python27lib','C:Python27libs'] NOT AVAILABLE blas_src_info: NOT AVAILABLE NOT AVAILABLE non-existing path in 'numpylib': 'benchmarks' lapack_opt_info: lapack_mkl_info: mkl_info: libraries mkl,'C:Python27libs'] NOT AVAILABLE NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,atlas not found in C:Python27lib libraries lapack_atlas not found in C:Python27lib libraries ptf77blas,atlas not found in C: libraries lapack_atlas not found in C: libraries ptf77blas,atlas not found in C:Python27libs libraries lapack_atlas not found in C:Python27libs numpy.distutils.system_info.atlas_threads_info NOT AVAILABLE atlas_info: libraries f77blas,atlas not found in C:Python27lib libraries lapack_atlas not found in C:Python27lib libraries f77blas,atlas not found in C: libraries lapack_atlas not found in C: libraries f77blas,atlas not found in C:Python27libs libraries lapack_atlas not found in C:Python27libs numpy.distutils.system_info.atlas_info NOT AVAILABLE lapack_info: libraries lapack not found in ['C:Python27lib','C:Python27libs'] NOT AVAILABLE lapack_src_info: NOT AVAILABLE NOT AVAILABLE unifing config_cc,config,build_clib,build_ext,build commands --compiler options unifing config_fc,build commands --fcompiler options build_src building py_modules sources building library "npymath" sources No module named msvccompiler in numpy.distutils; trying from distutils Running from numpy source directory. c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) C:Python27libdistutilsdist.py:267: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) error: Unable to find vcvarsall.bat Complete output from command C:Python27python.exe -c "import setuptools,tokenize;__file__='c:userszebraappdatalocaltemppip_build_zebranumpysetup.py';exec(compile(getattr(tokenize,'open',open)(__file__).read().replace('rn','n'),__file__,'exec'))" install --record c:userszebraappdatalocaltemppip-py_oa_-recordinstall-record.txt --single-version-externally-managed --compile: non-existing path in 'numpydistutils': 'site.cfg' F2PY Version 2 blas_opt_info: blas_mkl_info: libraries mkl,'C:Python27libs'] NOT AVAILABLE openblas_info: libraries not found in ['C:Python27lib','C:Python27libs'] NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,'C:Python27libs'] NOT AVAILABLE atlas_blas_info: libraries f77blas,'C:Python27libs'] NOT AVAILABLE blas_info: libraries blas not found in ['C:Python27lib','C:Python27libs'] NOT AVAILABLE blas_src_info: NOT AVAILABLE NOT AVAILABLE non-existing path in 'numpylib': 'benchmarks' lapack_opt_info: lapack_mkl_info: mkl_info: libraries mkl,'C:Python27libs'] NOT AVAILABLE NOT AVAILABLE atlas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,atlas not found in C:Python27lib libraries lapack_atlas not found in C:Python27lib libraries ptf77blas,atlas not found in C: libraries lapack_atlas not found in C: libraries ptf77blas,atlas not found in C:Python27libs libraries lapack_atlas not found in C:Python27libs numpy.distutils.system_info.atlas_threads_info NOT AVAILABLE atlas_info: libraries f77blas,atlas not found in C:Python27lib libraries lapack_atlas not found in C:Python27lib libraries f77blas,atlas not found in C: libraries lapack_atlas not found in C: libraries f77blas,atlas not found in C:Python27libs libraries lapack_atlas not found in C:Python27libs numpy.distutils.system_info.atlas_info NOT AVAILABLE lapack_info: libraries lapack not found in ['C:Python27lib','C:Python27libs'] NOT AVAILABLE lapack_src_info: NOT AVAILABLE NOT AVAILABLE running install running build running config_cc unifing config_cc,build commands --compiler options running config_fc unifing config_fc,build commands --fcompiler options running build_src build_src building py_modules sources creating build creating buildsrc.win-amd64-2.7 creating buildsrc.win-amd64-2.7numpy creating buildsrc.win-amd64-2.7numpydistutils building library "npymath" sources No module named msvccompiler in numpy.distutils; trying from distutils Running from numpy source directory. c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) c:userszebraappdatalocaltemppip_build_zebranumpynumpydistutilssystem_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__) C:Python27libdistutilsdist.py:267: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) error: Unable to find vcvarsall.bat ---------------------------------------- Cleaning up... Command C:Python27python.exe -c "import setuptools,'exec'))" install --record c:userszebraappdatalocaltemppip-py_oa_-recordinstall-record.txt --single-version-externally-managed --compile failed with error code 1 in c:userszebraappdatalocaltemppip_build_zebranumpy Storing debug log for failure in C:Userszebrapippip.log
也许你想在这里使用预建的二进制文件:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy?使用pip可能不会产生任何好结果.原因是numpy根本不用Visual Studio编译,需要用gcc构建.
如果您仍然真的想编译numpy,则需要使用Vagrant设置Linux机器并按照官方构建说明进行操作:https://github.com/juliantaylor/numpy-vendor (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows-server-2003 – 远程桌面没有响应的最常见原因?
- Windows10中的Delphi桌面截图,GetDeviceCaps问题
- Windows10安装ubuntu16.04双系统教程 Windows10
- windows – AutoHotKey:带多行输入的InputBox
- 是否可以使用R命令在Windows上安装pandoc?
- batch-file – .bat文件,用于创建具有特殊字符的复杂字符串
- windows-server-2008-r2 – 模拟服务帐户
- DOS查看端口占用及杀掉进程命令
- 超高速多进程操作key为uint32 value为uint32的数据(用于监
- windows10下Kafka环境搭建
推荐文章
站长推荐
- pycharm安装及配置
- cnpm安装过程中提示optional install error: Pac
- windows – 32位和64位进程之间的memcpy性能差异
- SAP ECC6 SOLUTION MANAGER KEY 生成脚本 (VBS)
- windows-phone-7 – 如何为枢轴项目标题添加图像
- windows – 2从IIS头部收到SMTP电子邮件通过C#应
- Windows – 终端服务器/ Citrix XenApp替代方案?
- Windows:将stdout和stderror重定向到空
- windows系统编辑过的脚本文件,在linxu上执行报错
- windows – 如何判断用户映射的网络驱动器?
热点阅读