首页 > 解决方案 > 错误:安装 pandas-profiling 期间需要 Microsoft Visual C++ 14.0 或更高版本

问题描述

作为 Python 模块 pandas-profiling 的依赖项,尝试安装模块 Bottleneck(提供快速 NumPy 数组函数 - 但用 C 编写)。安装中止并显示以下错误消息:

   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 /
   ----------------------------------------
   ERROR: Failed building wheel for bottleneck
Failed to build bottleneck

建议的解决方案意味着从https://visualstudio.microsoft.com/visual-cpp-build-tools/下载并安装“Microsoft C++ Build Tools” 。但是,这只会消耗 > 6GB 的硬盘空间,因为我不使用 Visual Studio。

你们中有人对不同的解决方案有想法吗?

标签: pythonc++pandas

解决方案


我找到了模块 Bottleneck 的编译版本(用于 Python 扩展包的非官方 Windows 二进制文件。作为轮子安装后,可以更新 Python 模块 pandas-profiling。


推荐阅读