|
C:\Users\hspcadmin>pip3installcx_OracleCollectingcx_Oracle Usingcachedcx_Oracle-8.3.0.tar.gz(363kB) Installingbuilddependencies...done Gettingrequirementstobuildwheel...done reparingmetadata(pyproject.toml)...doneBuildingwheelsforcollectedpackages:cx_Oracle Buildingwheelforcx_Oracle(pyproject.toml)...error error:subprocess-exited-with-error ×Buildingwheelforcx_Oracle(pyproject.toml)didnotrunsuccessfully. │exitcode:1 ╰─>[8linesofoutput] :6eprecationWarning:pkg_resourcesisdeprecatedasanAPI.Seehttps://setuptools.pypa.io/en/latest/pkg_resources.html C:\Users\hspcadmin\AppData\Local\Temp\pip-build-env-wz1x8fcs\overlay\Lib\site-packages\setuptools\config\expand.py:133:SetuptoolsWarning:File'C:\\Users\\hspcadmin\\AppData\\Local\\Temp\\pip-install-b815qnb9\\cx-oracle_5fdb6c3699b94b47b0d0aae7c80aa61a\\README.md'cannotbefound return'\n'.join( runningbdist_wheel runningbuild runningbuild_ext building'cx_Oracle'extension error:MicrosoftVisualC++14.0orgreaterisrequired.Getitwith"MicrosoftC++BuildTools":https://visualstudio.microsoft.com/visual-cpp-build-tools/ [endofoutput] note:Thiserrororiginatesfromasubprocess,andislikelynotaproblemwithpip. ERROR:Failedbuildingwheelforcx_OracleFailedtobuildcx_OracleERROR:Couldnotbuildwheelsforcx_Oracle,whichisrequiredtoinstallpyproject.toml-basedprojects经过各种搜索排查,发现 cx_Oracle支持最高python是3.10==,我下载的版本是python-3.12.3-amd64.exe。不支持。https://pypi.org/project/cx-Oracle/#files再见了python12==保证卸载干净,然后重新安装python10低版本。新手这里需要注意,可能卸载后,安装python10,cmd命令窗口找不到python或者pip命令。注意需要重新检查环境变量。保证是python10的路径和对应的pip。先看一下python10,执行cx_oracle的成功界面。(emmmm我就是反复卸载安装配置环境变量。。。折腾好几遍)
|
|