Pylint AttributeError:' module'对象没有属性'追加'

时间:2016-08-23 15:12:58

标签: python macos pylint

我正在配置我的新笔记本电脑(macbook pro),一切都很好,直到我想尝试我的pylint命令。

Traceback (most recent call last):
  File "/usr/local/bin/pylint", line 11, in <module>
    load_entry_point('pylint==1.6.4', 'console_scripts', 'pylint')()
  File "/usr/local/lib/python2.7/site-packages/pylint-1.6.4-py2.7.egg/pylint/__init__.py", line 13, in run_pylint
    Run(sys.argv[1:])
  File "/usr/local/lib/python2.7/site-packages/pylint-1.6.4-py2.7.egg/pylint/lint.py", line 1270, in __init__
    'init-hook')))
  File "/usr/local/lib/python2.7/site-packages/pylint-1.6.4-py2.7.egg/pylint/lint.py", line 1371, in cb_init_hook
    exec(value) # pylint: disable=exec-used
  File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'append'

从那以后我就不明白我的幽灵有什么问题......我尝试了很多东西,但因为我不太确定我做了什么最后,我宁愿不列出事情。

是否有人已经得到它?谁知道如何解决它?

感谢您的帮助

0 个答案:

没有答案