我有一个flask应用程序在Apache server
上使用mod_wsgi
运行。在我尝试使用cx_Oracle访问数据库之前,一切正常。此时我得到以下错误:
sqlalchemy.exc.DatabaseError: (cx_Oracle.DatabaseError) DPI-1047: Cannot locate a 64-bit Oracle Client library: "The specified module could not be found". See https://oracle.github.io/odpi/doc/installation.html#windows for help
我已经将客户端库路径添加到os环境变量中。 如果我从Pycharm IDE启动应用程序,效果会很好
我甚至在我的.wsgi
文件中添加了以下行
sys.path.append('D:\FlaskDev\instantclient_11_2')
有人能帮忙吗?提前谢谢
如果您的python是64位的,那么您也必须使用64位即时客户端。 试着按照this的指示去做
相关问题 更多 >
编程相关推荐