Spyder插件(spyderautopep8)

2024-06-26 14:24:49 发布

您现在位置:Python中文网/ 问答频道 /正文

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

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

我的问题是如何在Spyder内部使用它?自述文件(上面的链接)中的说明是点击F8或转到Source > Run autopep8 code autoformatting。但现在,我默认的F8是Source > Run static code analysis。在

谢谢!!在


Tags: installrunpyhttpsgithubcom插件source
3条回答

Spyder developer here)很抱歉,但(2017年4月)spyder-autopep8尚未准备好使用。我们将在接下来的几个月内尝试正式发布这个插件,以便可以使用pip或{}来安装它。在

只是偶然发现了同样的问题。。。在

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

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

我把spyder_autoep8文件夹移到了plugins目录下。现在shift+f8在spyder中工作,。在

相关问题 更多 >