spyder 自动补全

安装anaconda3后,spyder一直没有自动补全,按照链接https://blog.csdn.net/pursuit_zhangyu/article/details/79622150

等描述的方法

找到/home/pc314/anaconda3/envs/tensorflow/lib/python3.5/site-packages/spyder/utils/introspection

打开module_completion.py拉到最后,然后看到mods,输入想要提示的模块。
spyder 代码自动补齐设置方式

toors->preferences->IPython console->advanced Settings 选中Use the greedy completer,还有就是Autocall换位Full。

但是这样也不能解决问题

后来再github上反馈(https://github.com/spyder-ide/spyder/issues/5782),需要卸载enum这个库,但是我安装的根本就没有这个库。

后来google以后,发现解决方案(https://stackoverflow.com/questions/18044312/spyder-does-not-autocomplete-local-variables):

(Spyder dev here) Spyder does complete local variables but to have this functionality you need to install a library called rope. You can do it by running this command in a terminal

pip install rope

If you use Python 3 this command needs to be

pip install rope_py3k

Besides, code completion on the Editor works now with both Ctrl+Space and with Tab.

即可解决在editor里的代码补全问题

 

 

你可能感兴趣的:(spyder 自动补全)