Spyder 插件 (spyder-autopep8) [英] Spyder plugins (spyder-autopep8)

查看:148
本文介绍了Spyder 插件 (spyder-autopep8)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图从这里安装 spyder-autopep8 插件:https://github.com/spyder-ide/spyder-autopep8

So I'm trying to install the spyder-autopep8 plugin from here: https://github.com/spyder-ide/spyder-autopep8

我下载并解压缩它并按照指示运行 python setup.py install.(这是在我的 ../.spyder-py3/plugins 文件夹中)

I downloaded and unzipped it and ran python setup.py install as instructed. (This is inside my ../.spyder-py3/plugins folder)

我的问题是如何在 Spyder 中使用它?自述文件(上面的链接)中的说明说按 F8 或转到 Source >运行 autopep8 代码自动格式化.但是现在,我的默认 F8 是 Source >运行静态代码分析.

My question is how do I use this inside Spyder? The instructions from the README (link above) says to hit F8 or go to Source > Run autopep8 code autoformatting. But right now, the default F8 for me is Source > Run static code analysis.

谢谢!!

推荐答案

刚刚偶然发现了同样的问题...

just stumbled upon the very same problem...

我首先通过 pip 安装新的 spyder 然后让它工作通过以下方式直接从 git 存储库安装 autopep8:

i got it working by first installing new spyder via pip and then installing autopep8 directly from the git repository via:

pip install git+https://github.com/spyder-ide/spyder-autopep8.git

这篇关于Spyder 插件 (spyder-autopep8)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆