从源码安装numpy是需要编译的,如果不太精通此道,对于32位的python 2.7,可以在sourceforge上面下载再安装,或者从lfd那里下载再安装,这个地方提供了32位与64位的whl安装文件,用wheel安装即可,而且这里提供的numpy的blas和lapack有用了mkl的版本,对于intel的处理器,效率更佳。

自己编译numpy的话会有一些麻烦,我也是在解决了一些问题后才成功编译32位与64位的numpy+mkl的。

根据python pandas教程用命令行安装pandas,一直安装不成功,查阅了说明也不知道问题在哪,困扰了python人员的使用,

C:\Documents and Settings\Administrator>pip install pandas

Collecting pandas

Using cached pandas-0.16.2-cp27-none-win32.whl

Requirement already satisfied (use –upgrade to upgrade): pytz>=2011k in d:\python27\lib\site-packages (from pandas)

Requirement already satisfied (use –upgrade to upgrade): python-dateutil in d:\python27\lib\site-packages (from pandas)

Collecting numpy>=1.7.0 (from pandas)

Using cached numpy-1.9.2.tar.gz

Requirement already satisfied (use –upgrade to upgrade): six>=1.5 in d:\python27\lib\site-packages (from python-dateutil->pandas)

Installing collected packages: numpy, pandas

Found existing installation: numpy 1.6.1

Uninstalling numpy-1.6.1:

Successfully uninstalled numpy-1.6.1

Running setup.py install for numpy

Complete output from command D:\Python27\python.exe -c “import setuptools, tokenize;__file__=’c:\\docume~1\\admini~1\\locals~1\\temp\\pip-build-2xx5ke\\numpy\\setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(__file__).read().replace(‘\r\n’, ‘\n’), __file__, ‘exec’))” install –record c:\docume~1\admini~1\locals~1\temp\pip-vafhhg-record\install-record.txt –single-version-externally-managed –compile:

non-existing path in ‘numpy\\distutils’: ‘site.cfg’

non-existing path in ‘numpy\\f2py’: ‘docs’

non-existing path in ‘numpy\\f2py’: ‘f2py.1’

F2PY Version 2

blas_opt_info:

blas_mkl_info:

libraries mkl,vml,guide not found in [‘D:\\Python27\\lib’, ‘C:\\’, ‘D:\\Python27\\libs’]

NOT AVAILABLE

openblas_info:

libraries openblas not found in [‘D:\\Python27\\lib’, ‘C:\\’, ‘D:\\Python27\\libs’]

NOT AVAILABLE

atlas_3_10_blas_threads_info:

Setting PTATLAS=ATLAS

libraries tatlas not found in [‘D:\\Python27\\lib’, ‘C:\\’, ‘D:\\Python27\\libs’]

NOT AVAILABLE

atlas_3_10_blas_info:

libraries satlas not found in [‘D:\\Python27\\lib’, ‘C:\\’, ‘D:\\Python27\\libs’]

NOT AVAILABLE

atlas_blas_threads_info:

Setting PTATLAS=ATLAS

libraries ptf77blas,ptcblas,atlas not found in [‘D:\\Python27\\lib’, ‘C:\\’, ‘D:\\Python27\\libs’]

NOT AVAILABLE

atlas_blas_info:

libraries f77blas,cblas,atlas not found in [‘D:\\Python27\\lib’, ‘C:\\’, ‘D:\\Python27\\libs’]

NOT AVAILABLE

blas_info:

libraries blas not found in [‘D:\\Python27\\lib’, ‘C:\\’, ‘D:\\Python27\\libs’]

NOT AVAILABLE

blas_src_info:

NOT AVAILABLE

NOT AVAILABLE

non-existing path in ‘numpy\\lib’: ‘benchmarks’

lapack_opt_info:

openblas_lapack_info:

libraries openblas not found in [‘D:\\Python27\\lib’, ‘C:\\’, ‘D:\\Python27\\libs’]

NOT AVAILABLE

lapack_mkl_info:

mkl_info:

libraries mkl,vml,guide not found in [‘D:\\Python27\\lib’, ‘C:\\’, ‘D:\\Python27\\libs’]

NOT AVAILABLE

NOT AVAILABLE

atlas_3_10_threads_info:

Setting PTATLAS=ATLAS

libraries tatlas,tatlas not found in D:\Python27\lib

libraries lapack_atlas not found in D:\Python27\lib

libraries tatlas,tatlas not found in C:\

libraries lapack_atlas not found in C:\

libraries tatlas,tatlas not found in D:\Python27\libs

libraries lapack_atlas not found in D:\Python27\libs

numpy.distutils.system_info.atlas_3_10_threads_info

NOT AVAILABLE

atlas_3_10_info:

libraries satlas,satlas not found in D:\Python27\lib

libraries lapack_atlas not found in D:\Python27\lib

libraries satlas,satlas not found in C:\

libraries lapack_atlas not found in C:\

libraries satlas,satlas not found in D:\Python27\libs

libraries lapack_atlas not found in D:\Python27\libs

numpy.distutils.system_info.atlas_3_10_info

NOT AVAILABLE

atlas_threads_info:

Setting PTATLAS=ATLAS

libraries ptf77blas,ptcblas,atlas not found in D:\Python27\lib

libraries lapack_atlas not found in D:\Python27\lib

libraries ptf77blas,ptcblas,atlas not found in C:\

libraries lapack_atlas not found in C:\

libraries ptf77blas,ptcblas,atlas not found in D:\Python27\libs

libraries lapack_atlas not found in D:\Python27\libs

numpy.distutils.system_info.atlas_threads_info

NOT AVAILABLE

atlas_info:

libraries f77blas,cblas,atlas not found in D:\Python27\lib

libraries lapack_atlas not found in D:\Python27\lib

libraries f77blas,cblas,atlas not found in C:\

libraries lapack_atlas not found in C:\

libraries f77blas,cblas,atlas not found in D:\Python27\libs

libraries lapack_atlas not found in D:\Python27\libs

numpy.distutils.system_info.atlas_info

NOT AVAILABLE

lapack_info:

libraries lapack not found in [‘D:\\Python27\\lib’, ‘C:\\’, ‘D:\\Python27\\libs’]

NOT AVAILABLE

lapack_src_info:

NOT AVAILABLE

NOT AVAILABLE

running install

running build

running config_cc

unifing config_cc, config, build_clib, build_ext, build commands –compiler options

running config_fc

unifing config_fc, config, build_clib, build_ext, build commands –fcompiler options

running build_src

build_src

building py_modules sources

creating build

creating build\src.win32-2.7

creating build\src.win32-2.7\numpy

creating build\src.win32-2.7\numpy\distutils

building library “npymath” sources

No module named msvccompiler in numpy.distutils; trying from distutils

customize GnuFCompiler

Could not locate executable g77

Could not locate executable f77

customize IntelVisualFCompiler

Could not locate executable ifort

Could not locate executable ifl

customize AbsoftFCompiler

Could not locate executable f90

customize CompaqVisualFCompiler

Could not locate executable DF

customize IntelItaniumVisualFCompiler

Could not locate executable efl

customize Gnu95FCompiler

Could not locate executable gfortran

Could not locate executable f95

customize G95FCompiler

Could not locate executable g95

customize IntelEM64VisualFCompiler

customize IntelEM64TFCompiler

Could not locate executable efort

Could not locate executable efc

don’t know how to compile Fortran code on platform ‘nt’

D:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Inumpy\core\src\private -Inumpy\core\src -Inumpy\core -Inumpy\core\src\npymath -Inumpy\core\src\multiarray -Inumpy\core\src\umath -Inumpy\core\src\npysort -Inumpy\core\include -ID:\Python27\include -ID:\Python27\PC /Tc_configtest.c /Fo_configtest.obj

Found executable D:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe

Running from numpy source directory.

c:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\system_info.py:1603: 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:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\system_info.py:1612: 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:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\system_info.py:1615: 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:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\system_info.py:1505: 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:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\system_info.py:1516: 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:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\system_info.py:1519: 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__)

D:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: ‘define_macros’

warnings.warn(msg)

D:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe /nologo /INCREMENTAL:NO _configtest.obj /OUT:_configtest.exe /MANIFESTFILE:_configtest.exe.manifest

Found executable D:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.exe

LINK : fatal error LNK1104: 无法打开文件“kernel32.lib”

failure.

removing: _configtest.c _configtest.obj

Traceback (most recent call last):

File “”, line 1, in

File “c:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\setup.py”, line 251, in

setup_package()

File “c:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\setup.py”, line 243, in setup_package

setup(**metadata)

File “c:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\core.py”, line 169, in setup

return old_setup(**new_attr)

File “D:\Python27\lib\distutils\core.py”, line 152, in setup

dist.run_commands()

File “D:\Python27\lib\distutils\dist.py”, line 953, in run_commands

self.run_command(cmd)

File “D:\Python27\lib\distutils\dist.py”, line 972, in run_command

cmd_obj.run()

File “c:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\command\install.py”, line 62, in run

r = self.setuptools_run()

File “c:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\command\install.py”, line 36, in setuptools_run

return distutils_install.run(self)

File “D:\Python27\lib\distutils\command\install.py”, line 563, in run

self.run_command(‘build’)

File “D:\Python27\lib\distutils\cmd.py”, line 326, in run_command

self.distribution.run_command(command)

File “D:\Python27\lib\distutils\dist.py”, line 972, in run_command

cmd_obj.run()

File “c:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\command\build.py”, line 39, in run

old_build.run(self)

File “D:\Python27\lib\distutils\command\build.py”, line 127, in run

self.run_command(cmd_name)

File “D:\Python27\lib\distutils\cmd.py”, line 326, in run_command

self.distribution.run_command(command)

File “D:\Python27\lib\distutils\dist.py”, line 972, in run_command

cmd_obj.run()

File “c:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\command\build_src.py”, line 153, in run

self.build_sources()

File “c:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\command\build_src.py”, line 164, in build_sources

self.build_library_sources(*libname_info)

File “c:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\command\build_src.py”, line 299, in build_library_sources

sources = self.generate_sources(sources, (lib_name, build_info))

File “c:\docume~1\admini~1\locals~1\temp\pip-build-2xx5ke\numpy\numpy\distutils\command\build_src.py”, line 386, in generate_sources

source = func(extension, build_dir)

File “numpy\core\setup.py”, line 686, in get_mathlib_info

raise RuntimeError(“Broken toolchain: cannot link a simple C program”)

RuntimeError: Broken toolchain: cannot link a simple C program

—————————————-

Rolling back uninstall of numpy

Command “D:\Python27\python.exe -c “import setuptools, tokenize;__file__=’c:\\do

cume~1\\admini~1\\locals~1\\temp\\pip-build-hgt5rt\\numpy\\setup.py’;exec(compil

e(getattr(tokenize, ‘open’, open)(__file__).read().replace(‘\r\n’, ‘\n’), __file

__, ‘exec’))” install –record c:\docume~1\admini~1\locals~1\temp\pip-_heluk-rec

ord\install-record.txt –single-version-externally-managed –compile” failed wit

h error code 1 in c:\docume~1\admini~1\locals~1\temp\pip-build-hgt5rt\numpy

喜欢 (4)or分享 (0)

python安装pandas出错_python pandas 安装失败原因揭晓_python pandas 教程相关推荐

  1. python3.6安装scrapy出错_python3.6安装scrapy

    1. Scrapy安装介绍 Scrapy的安装有多种方式,它支持Python2.7版本及以上或Python3.3版本及以上.下面说明Python3环境下的安装过程. Scrapy依赖的库比较多,至少需 ...

  2. cad无法安装_你的软件下载好了,为什么安装不上?有两个原因,解决方法在这...

    CAD软件下载好了,安装总是提示失败应该怎么解决?其实安装出错的问题还是很好解决的,我们先来看看是因为哪些原因导致的吧! 一.安装软件提示出错 1.CAD软件已安装 有一种情况是小伙伴想要尝试重新安装 ...

  3. 树莓派python中安装numpy,pandas,torch,torchvision失败,ERROR: Could not find a version that satisfies the req

    树莓派python中安装numpy,pandas,torch,torchvision问题 安装失败现象 python通过pip安装torch错误ERROR: Could not find a vers ...

  4. python安装了不能用_python – 我安装了pandas,但它无法正常工作

    我有PyCharm 18,我安装了pandas版本0.22.0.当我导入它不起作用, 这是我的代码: import pandas as pd datas = pd.DataFrame({ " ...

  5. python基础知识及数据分析工具安装及简单使用(Numpy/Scipy/Matplotlib/Pandas/StatsModels/Scikit-Learn/Keras/Gensim))

    Python介绍. Unix & Linux & Window & Mac 平台安装更新 Python3 及VSCode下Python环境配置配置 python基础知识及数据分 ...

  6. 【python教程入门学习】Pandas库下载和安装

    Python 官方标准发行版并没有自带 Pandas 库,因此需要另行安装.除了标准发行版外,还有一些第三方机构发布的 Python 免费发行版, 它们在官方版本的基础上开发而来,并有针对性的提前安装 ...

  7. Py之Pandas:Python的pandas库简介、安装、使用方法详细攻略

    Py之Pandas:Python的pandas库简介.安装.使用方法详细攻略 目录 pandas库简介 pandas库安装 pandas库使用方法 1.函数使用方法 2.使用经验总结 3.绘图相关操作 ...

  8. python中的pandas怎么安装_如何优雅的安装Python的pandas?

    本文是我<量化小讲堂>系列文章中的一篇,正好可以解决楼主的问题,转帖如下,其他系列文章可见:[量化小讲堂 - Python&Pandas系列]目录汇总 - 量化小讲堂 开发环境的搭 ...

  9. 安装pandas库报错_python中安装pandas

    在运行网上找的代码时,报错:ImportError: No module named 'pandas',解决:安装pandas 安装过程: (因为网上教程有的说用pip命令行安装:有的直接下载安装包, ...

最新文章

  1. spring boot 切换 oracle 和 mysql_spring-boot多数据源动态切换
  2. T extends ComparableT和T extends Comparable? super T含义
  3. Effective Java之用私有构造器或者枚举类型强化Singleton属性(三)
  4. SELECT 与 SET 对变量赋值的区别(存储过程)
  5. 使用Spring将POJO公开为JMX MBean
  6. 2014年英语一阅读理解Text1
  7. 爬虫-请求头处理模块
  8. android java 调用栈_Android开发中打印方法调用栈
  9. 漫画:什么是字符集和编码?ASCII、UTF-8、UTF-16、UTF-32 又是什么?
  10. 怎么自学python-如何学习好Python这门课程?老男孩Python培训全套视频
  11. java高并发模糊查询,高并发优化
  12. C语言的sqrt函数的调用
  13. netty权威指南(第二版)对应的源码
  14. Oracle-数据库的备份与恢复
  15. 握奇ukey没证书_握奇USB KEY
  16. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...
  17. Padavan老毛子的二级路由,怎样设置与主路由在同一网段
  18. 单片机c语言波特率检测,基于MSP430系列微控制器串口通信时的波特率自动检测的实现...
  19. 【脑电数据处理】小波变换
  20. VSCode配置Python开发环境!

热门文章

  1. 【实时更新】LaTeX公式编辑(希腊字母/分数/上下标/加粗/关系符/点乘/无穷大)
  2. 担心自己和对象的未来怎么办_别担心,要开心:如何通过5个简单的步骤来建立自己的未来技术职业。...
  3. R语言使用load函数将过往保存的工作空间镜像文件(RData)加载到当前会话、使用q函数关闭当前工作空间(系统会提示是否保存或者取消)
  4. 2022年北京理工大学计算机考研复试时间与安排
  5. android 无线点菜,饭菜先生for Android
  6. IFAKER全系版本 对于游戏用户避免每次一键新机更新补丁 非 NZT
  7. 数模常用算法——图论算法简介代码实现
  8. java 鼠标悬停事件_java swing中如何实现对于鼠标监听悬停事件
  9. MySQL insert value与values
  10. Linux的samba服务