安装 oracle 后,在 django 项目中连接出现问题记录。

问题1:pip install cx_Oacle 未出现任何问题,但运行过程出现:

    django 连接 oracle 问题

   原因:连接 oracle 的工具 cx_Oracle 安装不正确或未安装

   解决:自己下载安装与自己系统匹配的 whl 文件进行安装,如我的是 python 3.6 +系统 win(64),因此对应版本是:cx_Oracle-6.4.1-cp36-cp36m-win_amd64.whl 

          下载地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_oracle

           安装: pip install cx_Oracle-6.4.1-cp36-cp36m-win_amd64.whl  

 

问题2:pip install/uninstall cx_Oracle 操作不成功,出现问题如下

   django 连接 oracle 问题

提示:cx_Oracle_******.pyd 文件限制访问
解决:删除该文件,再重新安装即可

PS:cx_Oracle 最好下载 对应whl文件,再自行安装较好。

 

相关文章:

  • 2021-11-13
  • 2021-09-09
  • 2018-11-21
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
猜你喜欢
  • 2021-04-28
  • 2019-02-26
  • 2021-11-04
  • 2022-12-23
  • 2021-05-31
  • 2022-12-23
  • 2022-01-08
相关资源
相似解决方案