简体   繁体   English

使用pip在ubuntu上安装prettytable时出错

[英]Error installing prettytable on ubuntu with pip

I just installed pip, installed a few packages np.我刚刚安装了pip,安装了几个包np。 I tried this我试过这个

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

How do I install prettytable?我如何安装漂亮的?

The error comes from PyOpenSSL .错误来自PyOpenSSL Either your OpenSSL is too old or too new.您的OpenSSL太旧或太新。 Try upgrading or downgrading OpenSSL and PyOpenSSL .尝试升级或降级OpenSSLPyOpenSSL

Reinstalling pyopenssl worked for me:重新安装 pyopenssl 对我有用:

pip uninstall pyopenssl
pip install pyopenssl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM