Python 2.7.5,导入随机在AIX平台上抛出错误
问题描述:
我无法在AIX操作系统上的python 2.7.5中执行“导入随机”操作。它引发了以下例外。Python 2.7.5,导入随机在AIX平台上抛出错误
Python 2.7.5 (default, Aug 2 2013, 23:28:11) [C] on aix6
Type "help", "copyright", "credits" or "license" for more information.
>>> import random
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
我搜索了它说libssl缺失的错误任何人都可以告诉我如何在AIX上安装libssl。
答
您可以从IBM下载OpenSSL的位置 - >
https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?source=aixbp&S_PKG=openssl
并安装这样
mkdir openssl.0.9.8.1103 && cd openssl.0.9.8.1103 && uncompress -c < ../openssl.0.9.8.1103.tar.Z |tar -xvf - && installp -acXYgd . openssl
您正在使用什么版本的AIX? – Colwin
@Colwin我正在使用AIX 6.1 –