我有一个python脚本,我使用pyinstall生成一个文件
但是当我使用这个文件到其他服务器时,出现了一些问题
[root@ops-pdc-02 tmp]# ./linux_server_script
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 147, in <module>
File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 97, in __get_builtin_constructor
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 147, in <module>
File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 147, in <module>
File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 147, in <module>
File "/tmp/build/linux_server_script/out00-PYZ.pyz/hashlib", line 97, in __get_builtin_constructor
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
我的服务器有openssl lib,我使用pythonshell look hashlib模块,这是正确的
它是openssl,所以下载ssl证书看看
http://drops.cnmoker.org/archives/403.html
openssl卷曲python pip
CA、etc/pki/tls/certs/CA-束.crt你知道吗
https://labs.bitpay.com/t/how-to-update-the-root-ca-cert-bundle-on-your-webserver-if-you-are-getting-curl-ssl-errors/315
也许还有一个版本
相关问题 更多 >
编程相关推荐