Python django urllib HTTPS请求:<;url打开错误未知url类型:https>;

Python django urllib HTTPS请求:<;url打开错误未知url类型:https>;,python,django,Python,Django,我在使用urllib时出错 python 2.6 django 1.4.1 当我使用python时 > import ssl 得到 Python 2.6或Django 1.4.x不再受支持。我强烈建议使用当前版本,因为两者都没有收到安全更新。关于您的问题,我使用requests包来满足所有HTTP需求,而不是Python的内置功能:另请参见、、等等。 Traceback (most recent call last): File "<stdin>", line 1

我在使用urllib时出错

python 2.6 django 1.4.1

当我使用python时

> import ssl
得到


Python 2.6或Django 1.4.x不再受支持。我强烈建议使用当前版本,因为两者都没有收到安全更新。关于您的问题,我使用
requests
包来满足所有HTTP需求,而不是Python的内置功能:另请参见、、等等。
    Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/xxx/lib/python2.6/ssl.py", line 60, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: libssl.so.6: cannot open shared object file: No such file or directory
openssl version -v
OpenSSL 1.0.1e-fips 11 Feb 2013