PyCharm 安装 cx_Oracle 失败

我在PyCharm的终端用 pip安装cx_Oracle失败,报错情况如下:

复制代码
ERROR: Could not build wheels for cx_Oracle, which is required to install pyproject.toml-based projects

出错原因:

python 的版本太高了,我的是3.11版本的,但是实际上,cx_Oracle能匹配到的最高的python版本是3.10

注:能与cx_Oracle相匹配的python版本(3.6-3.10),可参考链接cx-Oracle · PyPI

解决步骤:

① 下载个python 3.8.0 替换一下 3.11
② 重新用pip安装cx_Oracle

pip install cx_Oracle

希望我的方法可以帮助到您~ 感谢关注!!

相关推荐
IT空门:门主16 小时前
Spring AI 2.1.0 更新了什么:从 2.0 升上来的完整梳理
人工智能·python·spring
AI创界者17 小时前
Python 进阶实战(七十章):遗留系统重构、渐进式绞杀与技术债治理实战
人工智能·python·aigc
ZhengEnCi18 小时前
电脑操作 Agent 一直点不中:截图没更新时,提示词该怎么改才能停止瞎试
人工智能·python·agent
Wellijohn20 小时前
dict、tuple、dataclass 还是 slots?我把 6 种数据载体的 8 项开销全测了一遍
后端·python·性能优化
bufengwangluo20 小时前
爬虫和调用 API 有什么区别?为什么优先选 API
python·网络爬虫·ip·api调用
Dmz丶20 小时前
前端转 AI 100 天 Day 54:RAG 项目实战(三)——多轮对话 + 会话管理
python
console.log('npc')21 小时前
Python第9课 类学习笔记,前端js语法对照
前端·python·学习
geovindu1 天前
python:Logistic Regression
开发语言·后端·python·算法
飞花漫卷,情随岁迁1 天前
网络数据包转发与内核机制:小白概念科普
linux·运维·网络·数据库·mysql·oracle·智能路由器