PyCharm 安装 cx

我在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

PyCharm 安装 cx

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

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/6aed6a5411.html