[root@NMS winrm]# python test.py Traceback (most recent call last): File "test.py", line 1, in <module> import winrm File "build/bdist.linux-x86_64/egg/winrm/__init__.py", line 6, in <module> File "build/bdist.linux-x86_64/egg/winrm/protocol.py", line 11, in <module> File "build/bdist.linux-x86_64/egg/winrm/transport.py", line 42, in <module> File "/usr/local/lib/python2.7/site-packages/requests_credssp/__init__.py", line 1, in <module> from .credssp import HttpCredSSPAuth File "/usr/local/lib/python2.7/site-packages/requests_credssp/credssp.py", line 8, in <module> raise Exception("Cannot import pyOpenSSL") Exception: Cannot import pyOpenSSL
尝试手动执行
1 2 3 4 5 6 7 8 9 10 11 12 13
[root@NMS OpenSSL]# python /usr/local/lib/python2.7/site-packages/OpenSSL/__init__.py Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import rand, crypto, SSL File "/usr/local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import rand, crypto, SSL File "/usr/local/lib/python2.7/site-packages/OpenSSL/rand.py", line 12, in <module> from OpenSSL._util import ( File "/usr/local/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in <module> from cryptography.hazmat.bindings.openssl.binding import Binding File "/usr/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in <module> from cryptography.hazmat.bindings._openssl import ffi, lib ImportError: /usr/local/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so: undefined symbol: EC_GROUP_new_curve_GF2m