当前位置: 首页 > article >正文

Win11基于anaconda pip安装cx_Oracle库报错ERROR: Failed building wheel for cx_Oracle

一、问题描述

windows系统在Anaconda prompt运行

pip install cx_Oracle

安装cx_Oracle库报错,python版本3.12.7,报错:

  • ERROR: Failed to build installable wheels for some pyproject.toml based projects (cx_Oracle)
  • ERROR: Failed building wheel for cx_Oracle
  • 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: subprocess-exited-with-error
    在这里插入图片描述

二、原因

上面所有报错,其实关键是下面这条报错造成,是因为电脑缺少Microsoft Visual C++ 14.0 or greater 的编译器,下载并安装Microsoft Visual C++ Build Tools后即可解决问题。

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/

三、解决方案

最简单方法下载一个社区版的visualstudio IDE,里面把C++编译器选上安装,VisualStudio免费社区版下载。
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述


http://www.kler.cn/a/587785.html

相关文章:

  • 每日一题---数组中两个字符串的最小距离
  • 【架构差异】SpringとSpringBoot:Bean机制的深入剖析与自动配置原理
  • 多页pdf转长图
  • Elasticsearch Java High Level Client [7.17] 使用
  • kettle的转换中sql不按设计顺序执行原因分析与解决办法
  • 【Godot】检查器的作用
  • 苹果iOS 18.4将强制升级HomeKit架构,旧版设备或无法使用
  • JVM之Arthas的jvm命令
  • 使用Python和Keras库实现基于双向门控循环单元(BiGRU)模型进行深度学习序列预测的示例
  • AGI大模型(6):提示词模型进阶
  • UE5 控件反射器查找源码方法
  • 谈谈List,Set,Map的区别
  • vscode 中打开ESP-IDF插件的欢迎页面
  • 前端面试笔试
  • Devops CI/CD
  • 【数据结构C语言】一、基本概念
  • 文件解析漏洞靶场解析全集详解
  • 数据库系统概念全面解析
  • 前端如何实现生成excel文件,并下载
  • 优化GreatSQL日志文件空间占用