最近在Atom中安装了atom-beautify软件包。我使用Linux作为操作系统。我已经安装了缺少的autopep8 python软件包,但我仍然遇到了这个意外错误。
autopep8:错误:没有这样的选项: - inin-size
任何人都知道为什么?下面是完整的堆栈跟踪!
用法:autopep8 [options] [filename [filename ...]]使用文件名' - ' 对于stdin。
autopep8:错误:没有这样的选项: - inin-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)
答案 0 :(得分:2)
apt-get删除它然后通过pip安装: pip install autopep8