Python 无法在linux上导入ssl

Python 无法在linux上导入ssl,python,linux,ubuntu,ssl,shared-libraries,Python,Linux,Ubuntu,Ssl,Shared Libraries,当我尝试在任何Python版本上导入ssl时 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.5/ssl.py", line 98, in <module> import _ssl # if we can't import it, let the error propag

当我尝试在任何Python版本上导入
ssl

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/ssl.py", line 98, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: /lib/x86_64-linux-gnu/libssl.so.1.0.0: symbol X509_chain_up_ref, version
OPENSSL_1.0.2 not defined in file libcrypto.so.1.0.0 with link time reference
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/usr/local/lib/python3.5/ssl.py”,第98行,在
导入_ssl#如果我们无法导入它,让错误传播
导入错误:/lib/x86\u 64-linux-gnu/libssl.so.1.0.0:symbol X509\u chain\u up\u ref,版本
OPENSSL_1.0.2未在文件libcrypto.so.1.0.0中定义,带有链接时间参考
我自己用
libssl-dev
version
1.0.2
编译了Python 3.5。根据我的能力,我安装了
libssl1.0.0.0
version
1.0.2
openssl
version
1.0.2

不同版本的
libssl
openssl
libssl dev
似乎有问题,但我已通过软件包管理器安装了所有这些软件的最新版本

我正在使用Ubuntu 15.10 64位