如何在 Windows 中为 Python 3.4 安装 pandas?
How do I install pandas for Python 3.4 in Windows?
根据 the docs,这应该有效:
Installing from PyPI
pandas can be installed via pip from PyPI.
pip install pandas
This will likely require the installation of a number of dependencies, including NumPy, will require a compiler to compile required bits of code, and can take a few minutes to complete.
我现在已经尝试了几次,但看起来它在整理 numpy 时遇到了问题?
Downloading/unpacking pandas
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in c:\python34\lib\site-packages (from pandas)
Downloading/unpacking numpy>=1.7.0 (from pandas)
Running setup.py (path:C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\setup.py) egg_info for package numpy
Running from numpy source directory.
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
Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2 in c:\python34\lib\site-packages (from pandas)
Installing collected packages: pandas, numpy
Running setup.py install for numpy
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 ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
blas_info:
libraries blas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\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 ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in C:\Python34\lib
libraries lapack_atlas not found in C:\Python34\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries ptf77blas,ptcblas,atlas not found in C:\Python34\libs
libraries lapack_atlas not found in C:\Python34\libs
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in C:\Python34\lib
libraries lapack_atlas not found in C:\Python34\lib
libraries f77blas,cblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries f77blas,cblas,atlas not found in C:\Python34\libs
libraries lapack_atlas not found in C:\Python34\libs
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
NOT AVAILABLE
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
build_src
building py_modules sources
building library "npymath" sources
No module named 'numpy.distutils.msvccompiler' in numpy.distutils; trying from distutils
Running from numpy source directory.
C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1526: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1535: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1538: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1432: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1443: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1446: 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:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
error: \GnuWin32\bin";"C:\Program was unexpected at this time.
Complete output from command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\
setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\jonc\AppData
Temp\pip-7c38q9vd-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 ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
blas_info:
libraries blas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\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 ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in C:\Python34\lib
libraries lapack_atlas not found in C:\Python34\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries ptf77blas,ptcblas,atlas not found in C:\Python34\libs
libraries lapack_atlas not found in C:\Python34\libs
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in C:\Python34\lib
libraries lapack_atlas not found in C:\Python34\lib
libraries f77blas,cblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries f77blas,cblas,atlas not found in C:\Python34\libs
libraries lapack_atlas not found in C:\Python34\libs
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\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-3.4
creating build\src.win32-3.4\numpy
creating build\src.win32-3.4\numpy\distutils
building library "npymath" sources
No module named 'numpy.distutils.msvccompiler' in numpy.distutils; trying from distutils
Running from numpy source directory.
C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1526: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1535: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1538: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1432: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1443: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1446: 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:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
error: \GnuWin32\bin";"C:\Program was unexpected at this time.
----------------------------------------
Cleaning up...
Command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\setup.py';exec(com
tattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\jonc\AppData\Local\Temp\pip-7c38q9vd-
install-record.txt --single-version-externally-managed --compile failed with error code 1 in C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy
Storing debug log for failure in C:\Users\jonc\pip\pip.log
我错过了什么?
我设法通过以下方式实现此功能:
- 从这里下载 32 位版本:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
- pip 安装"numpy-1.9.2rc1+mkl-cp34-none-win32.whl"
- pip 安装六
- pip 安装pandas
这适用于 64 位机器:
- 下载并安装 64 位 Python:https://www.python.org/downloads/release/python-342/
- 从这里下载 64 位版本的 numpy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
- pip 安装"numpy-1.9.2rc1+mkl-cp34-none-win_amd64.whl"
- pip 安装pandas
假设您已经在您的机器上安装了 python3.4 并且您有 windows OS
只需在命令提示符下键入以下内容:
pip install pandas
确保您的系统上安装了 "pip"
例如:
c:\python34\Scripts>pip 安装pandas
您可以直接通过 pip 在 Windows 上轻松安装 pandas for Python 3.4,只需选择比最新 pandas 版本稍旧的版本。首先,你用
更新 pip
python -m pip install -U pip
然后安装版本 0.21.0 而不是可用于 Python 3.4 的最新版本:
pip install pandas==0.21.0
pandas 0.21.0 的安装应该可以直接用于 Python 3.4.0 - 3.4.4。您可以列出可用的版本:
pip install pandas==
如果您尝试安装更高版本,则需要 Visual Studio 2010,因为安装程序将尝试构建源。
C:\Users\DELL\AppData\Local\Programs\Python\Python36-32\Scripts>pip 安装pandas
根据 the docs,这应该有效:
Installing from PyPI
pandas can be installed via pip from PyPI.
pip install pandas This will likely require the installation of a number of dependencies, including NumPy, will require a compiler to compile required bits of code, and can take a few minutes to complete.
我现在已经尝试了几次,但看起来它在整理 numpy 时遇到了问题?
Downloading/unpacking pandas
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in c:\python34\lib\site-packages (from pandas)
Downloading/unpacking numpy>=1.7.0 (from pandas)
Running setup.py (path:C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\setup.py) egg_info for package numpy
Running from numpy source directory.
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
Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2 in c:\python34\lib\site-packages (from pandas)
Installing collected packages: pandas, numpy
Running setup.py install for numpy
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 ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
blas_info:
libraries blas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\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 ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in C:\Python34\lib
libraries lapack_atlas not found in C:\Python34\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries ptf77blas,ptcblas,atlas not found in C:\Python34\libs
libraries lapack_atlas not found in C:\Python34\libs
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in C:\Python34\lib
libraries lapack_atlas not found in C:\Python34\lib
libraries f77blas,cblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries f77blas,cblas,atlas not found in C:\Python34\libs
libraries lapack_atlas not found in C:\Python34\libs
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
lapack_src_info:
NOT AVAILABLE
NOT AVAILABLE
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
build_src
building py_modules sources
building library "npymath" sources
No module named 'numpy.distutils.msvccompiler' in numpy.distutils; trying from distutils
Running from numpy source directory.
C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1526: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1535: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1538: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1432: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1443: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1446: 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:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
error: \GnuWin32\bin";"C:\Program was unexpected at this time.
Complete output from command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\
setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\jonc\AppData
Temp\pip-7c38q9vd-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 ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
blas_info:
libraries blas not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\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 ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
lapack_mkl_info:
mkl_info:
libraries mkl,vml,guide not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\libs']
NOT AVAILABLE
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in C:\Python34\lib
libraries lapack_atlas not found in C:\Python34\lib
libraries ptf77blas,ptcblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries ptf77blas,ptcblas,atlas not found in C:\Python34\libs
libraries lapack_atlas not found in C:\Python34\libs
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries f77blas,cblas,atlas not found in C:\Python34\lib
libraries lapack_atlas not found in C:\Python34\lib
libraries f77blas,cblas,atlas not found in C:\
libraries lapack_atlas not found in C:\
libraries f77blas,cblas,atlas not found in C:\Python34\libs
libraries lapack_atlas not found in C:\Python34\libs
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
libraries lapack not found in ['C:\Python34\lib', 'C:\', 'C:\Python34\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-3.4
creating build\src.win32-3.4\numpy
creating build\src.win32-3.4\numpy\distutils
building library "npymath" sources
No module named 'numpy.distutils.msvccompiler' in numpy.distutils; trying from distutils
Running from numpy source directory.
C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1526: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1535: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1538: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1432: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1443: 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:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\numpy\distutils\system_info.py:1446: 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:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
error: \GnuWin32\bin";"C:\Program was unexpected at this time.
----------------------------------------
Cleaning up...
Command C:\Python34\python.exe -c "import setuptools, tokenize;__file__='C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy\setup.py';exec(com
tattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\jonc\AppData\Local\Temp\pip-7c38q9vd-
install-record.txt --single-version-externally-managed --compile failed with error code 1 in C:\Users\jonc\AppData\Local\Temp\pip_build_Jonc\numpy
Storing debug log for failure in C:\Users\jonc\pip\pip.log
我错过了什么?
我设法通过以下方式实现此功能:
- 从这里下载 32 位版本:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
- pip 安装"numpy-1.9.2rc1+mkl-cp34-none-win32.whl"
- pip 安装六
- pip 安装pandas
这适用于 64 位机器:
- 下载并安装 64 位 Python:https://www.python.org/downloads/release/python-342/
- 从这里下载 64 位版本的 numpy:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
- pip 安装"numpy-1.9.2rc1+mkl-cp34-none-win_amd64.whl"
- pip 安装pandas
假设您已经在您的机器上安装了 python3.4 并且您有 windows OS 只需在命令提示符下键入以下内容:
pip install pandas
确保您的系统上安装了 "pip"
例如: c:\python34\Scripts>pip 安装pandas
您可以直接通过 pip 在 Windows 上轻松安装 pandas for Python 3.4,只需选择比最新 pandas 版本稍旧的版本。首先,你用
更新 pippython -m pip install -U pip
然后安装版本 0.21.0 而不是可用于 Python 3.4 的最新版本:
pip install pandas==0.21.0
pandas 0.21.0 的安装应该可以直接用于 Python 3.4.0 - 3.4.4。您可以列出可用的版本:
pip install pandas==
如果您尝试安装更高版本,则需要 Visual Studio 2010,因为安装程序将尝试构建源。
C:\Users\DELL\AppData\Local\Programs\Python\Python36-32\Scripts>pip 安装pandas