错误导入六

时间:2016-04-01 19:07:10

标签: python

我在运行python脚本时收到错误消息。以下是错误消息。感谢帮助解决问题。

当我导入" six.moves.http_client导入HTTPConnection"它工作,问题是我导入HTTPSConnection

>>> from six.moves.http_client import HTTPSConnection
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'HTTPSConnection'
>>> from six.moves.http_client import HTTPSConnection 
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'HTTPSConnection'

0 个答案:

没有答案