简体   繁体   English

无法使用 pip CMD 安装 Pandas 分析错误

[英]can't install pandas profiling error using pip CMD

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明 在此处输入图片说明

在此处输入图片说明

tried installing pandas profiling and i get this error always pip is last version and i installed pandas numpy and many packages and libraries and i dont know what is the problem尝试安装pandas profiling,我得到这个错误总是pip是最新版本,我安装了pandas numpy和许多包和库,但我不知道是什么问题

Using cached Bottleneck-1.3.2.tar.gz (88 kB)
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:

Complete output (302 lines):
  Ignoring numpy: markers 'python_version == "2.7" and platform_system != "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.5" and platform_system != "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.6" and platform_system != "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7" and platform_system != "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "2.7" and platform_system == "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.5" and platform_system == "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.6" and platform_system == "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version == "3.7" and platform_system == "AIX"' don't match your environment
  Ignoring numpy: markers 'python_version >= "3.8" and platform_system == "AIX"' don't match your environment

atlas_3_10_blas_threads_info:
      Setting PTATLAS=ATLAS
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      customize MSVCCompiler
        libraries tatlas not found in ['c:\\users
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.win-amd64-3.9
      creating build\src.win-amd64-3.9\numpy
      creating build\src.win-amd64-3.9\numpy\distutils
      building library "npymath" sources
      No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
C:\Users-----n\numpy_1e6bf51352e64e1bb02b98e06d5a5b7f\numpy\distutils\system_info.py:624: 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.
        self.calc_info()
        NOT AVAILABLE

Getting error while installing `pandas-profiling` 安装“pandas-profiling”时出错

Visual Studio changed the Build Tools from being C++ specific in late 2017. Thus newer Visual Studio versions work in place of older versions. Visual Studio 在 2017 年末更改了特定于 C++ 的构建工具。因此,较新的 Visual Studio 版本可以代替旧版本。

Install using any ONE of these choices:使用以下任一选项进行安装:

Microsoft Build Tools for Visual Studio.

Alternative link to Microsoft Build Tools for Visual Studio.
Offline installer: vs_buildtools.exe
Visual C++ 2015 Build Tools

Select: Workloads → Desktop development with C++, then for Individual Components, select only:选择:工作负载 → 使用 C++ 进行桌面开发,然后对于单个组件,仅选择:

Windows 10 SDK
C++ x64/x86 build tools

The build tools allow using MSVC “cl.exe” C / C++ compiler from the command line.构建工具允许从命令行使用 MSVC“cl.exe”C/C++ 编译器。

Why this is necessary?为什么这是必要的?

Windows Python needs Visual C++ libraries installed via the SDK to build code, such as via setuptools.extension.Extension or numpy.distutils.core.Extension. Windows Python 需要通过 SDK 安装 Visual C++ 库来构建代码,例如通过 setuptools.extension.Extension 或 numpy.distutils.core.Extension。 For example, building f2py modules in Windows with Python requires Visual C++ SDK as installed above.例如,在 Windows 中使用 Python 构建 f2py 模块需要如上安装的 Visual C++ SDK。 On Linux and Mac, the C++ libraries are installed with the compiler.在 Linux 和 Mac 上,C++ 库与编译器一起安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM