0

我刚刚安装了pip,安装了几个包np。我试过这个

pip install prettytable
Collecting prettytable
From cffi callback <function _verify_callback at 0x7f424837d6e0>:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 313, in wrapper
    _lib.X509_up_ref(x509)
AttributeError: 'module' object has no attribute 'X509_up_ref'
  Could not find a version that satisfies the requirement prettytable (from versions: )
No matching distribution found for prettytable

如何安装漂亮的?

4

2 回答 2

1

错误来自PyOpenSSL. 你OpenSSL的太旧或太新。尝试升级或降级OpenSSLPyOpenSSL.

于 2018-01-29T19:15:18.147 回答
0

重新安装 pyopenssl 对我有用:

pip uninstall pyopenssl
pip install pyopenssl
于 2018-08-31T20:15:45.447 回答