一、序
打包运行的exe在其他设备上出现DPI-1047:Cannot locate a 64-bit Oracle Client library:The specified module could not be found.
二、解决方法
标签:exe,1047Python,tnsnames,ADDRESS,服务器,DPI From: https://www.cnblogs.com/wengming/p/17544440.html1、安装Oracle Instant Client
2、配置系统环境
Path中添加解压路径 如(C:\Users\Administrator\Desktop\instantclient_12_2)
3、在解压路径中添加tnsnames.ora文件
4、tnsnames.ora的内容:
orcl =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 服务器IP)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = 服务器上服务名称)
)
)
服务器IP: