1

最近在 Atom 中安装了 atom-beautify 包。我正在使用 Linux 作为操作系统。我已经安装了缺少的 autopep8 python 包,但我仍然收到这个意外错误。

autopep8:错误:没有这样的选项:--indent-size

有谁知道为什么?下面是完整的堆栈跟踪!

用法:autopep8 [options] [filename [filename ...]] 使用文件名“-”作为标准输入。

autopep8:错误:没有这样的选项:--indent-size

Usage: autopep8 [options] [filename [filename ...]]
Use filename '-'  for stdin.
autopep8: error: no such option: --indent-size
Hide Stack Trace
Error: Usage: autopep8 [options] [filename [filename ...]]
Use filename '-'  for stdin.
autopep8: error: no such option: --indent-size
    at /home/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:287:27
    at tryCatcher (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:504:31)
    at Promise._settlePromise (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:561:18)
    at Promise._settlePromise0 (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:606:10)
    at Promise._settlePromises (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:685:18)
    at Async._drainQueue (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:138:16)
    at Async._drainQueues (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:148:10)
    at Async.drainQueues (/home/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)
    at process._tickCallback (node.js:392:9)
4

1 回答 1

2

apt-get 删除它然后通过 pip 安装: pip install autopep8

于 2016-08-11T20:26:16.870 回答