其他服务器的pyinstall编译器脚本无法运行i

2024-05-16 18:03:22 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个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模块,这是正确的


Tags: inbuildserverlinuxlinescripterrorroot