无论我尝试通过 pip3 install 安装什么模块,我总是遇到相同的错误:
AttributeError: module 'lib' has no attribute 'X509_up_ref'
Run Code Online (Sandbox Code Playgroud)
不知道如何解决这个问题。以前有人遇到过这个问题吗?
gabriel@E1-522:~$ pip3 install ipaddress
Collecting ipaddress
From cffi callback <function _verify_callback at 0x7f0d2e0419d8>:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/OpenSSL/SSL.py", line 313,
in wrapper
_lib.X509_up_ref(x509)
AttributeError: module 'lib' has no attribute 'X509_up_ref'
Could not find a version that satisfies the requirement ipaddress
(from versions: )
No matching distribution found for ipaddress
Run Code Online (Sandbox Code Playgroud)
尝试安装不同的模块时出现相同的错误:
gabriel@E1-522:~$ pip3 install cryptography
Collecting cryptography
From cffi callback <function _verify_callback at 0x7fd515d659d8>:
Traceback (most recent …Run Code Online (Sandbox Code Playgroud)