【发布时间】:2018-01-10 13:35:45
【问题描述】:
尝试在 python 中为 tflearn 执行帮助的基本操作时出现此错误。
我想知道这是什么原因以及如何解决它。
谢谢!
Python 2.7.12 (default, Nov 20 2017, 18:23:56)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help('tflearn')
problem in tflearn - <type 'exceptions.AttributeError'>: 'module' object has no attribute 'PROTOCOL_SSLv3'
【问题讨论】:
-
试试这个:
sudo pip install --upgrade beautifulsoup4;sudo pip install --upgrade html5lib;sudo pip install spry. -
厌倦了这个,但仍然得到同样的错误。
-
您使用的是
requests包吗?在肯定的情况下,尝试:sudo pip install --upgrade requests. -
神奇!有效!感谢您的帮助....但是您能帮我理解为什么会出现此错误吗?
-
我读到旧版本中
requests包的依赖存在问题。