DPI-1047Python的exe无法执行问题
一、序
打包运行的exe在其他设备上出现DPI-1047:Cannot locate a 64-bit Oracle Client library:The specified module could not be found.
二、解决方法
1、安装 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: