在python3中出现的 ImportError: cannot import name 'abcstractmethod' from 'abc'

ABC和抽象类在python2.7文档中定义,并且存在于/usr/lib/python2.7中,必须强制sphinx使用python3.x。

但是使用python3安装sphinx解决了这个问题:

pip3 install sphinx

 

posted @ 2020-02-27 11:18  安全散人-林飒  阅读(45)  评论(0)    收藏  举报