对于新安装的模块,如何让`ipython`导入自动完成工作? [英] For newly installed modules, how do I get `ipython` import autocomplete to work?
本文介绍了对于新安装的模块,如何让`ipython`导入自动完成工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚在我的计算机上安装了 sqlalchemy
模块,但是当我输入 import sql
和 TAB时在ipython提示符中,自动完成功能只会向我建议内置的 sqlite3
模块。
I have just installed the sqlalchemy
module in my computer but when I type import sql
and TAB in the ipython prompt the autocomplete only suggests me the builtin sqlite3
module.
我如何获得ipython还要在导入自动完成时建议 sqlalchemy
?
How do I get ipython to also suggest sqlalchemy
on the import autocomplete?
推荐答案
基于此消息,
In [1]: import sq[TAB]
Caching the list of root modules, please wait!
(This will only be done once - type '%rehashx' to reset cache!)
你试过%rehashx
?
这篇关于对于新安装的模块,如何让`ipython`导入自动完成工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文