问题
So I'm trying to install the spyder-autopep8 plugin from here: https://github.com/spyder-ide/spyder-autopep8
I downloaded and unzipped it and ran python setup.py install
as instructed. (This is inside my ../.spyder-py3/plugins folder)
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
.
Thanks!!
回答1:
just stumbled upon the very same problem...
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
回答2:
(Spyder developer here) I'm sorry but (in April/2017) spyder-autopep8
is not ready to be used. We'll try make a formal release of this plugin in the following months, so that it can be installed using pip
or conda
.
回答3:
I moved the spyder_autopep8 folder to the plugins dir. Now shift+f8 is working in spyder,.
来源:https://stackoverflow.com/questions/43222138/spyder-plugins-spyder-autopep8