当为了解决python3.9.2版本中自带openssl1.1.1i的组件漏洞,所以直接复制openssl1.1.1k的libssl-1_1.dll来进行替换,然后使用pyinstaller打包出来的exe当运行的时候会报下面的错误
解决办法
安装OpenSSL库
下载页面:https://slproweb.com/products/Win32OpenSSL.html
默认安装之后就可以了
参考:
https://bugs.python.org/issue39344
https://slproweb.com/products/Win32OpenSSL.html
https://stackoverflow.com/questions/32093559/exe-file-created-by-pyinstaller-not-find-self-defined-modules-while-running
https://wiki.openssl.org/index.php/Binaries