对于新安装的模块,如何让 `ipython` 导入自动完成工作? [英] For newly installed modules, how do I get `ipython` import autocomplete to work?
本文介绍了对于新安装的模块,如何让 `ipython` 导入自动完成工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚在我的计算机中安装了 sqlalchemy
模块,但是当我在 ipython 提示中键入 import sql
和 TAB 时,自动完成只提示我是内置的 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屋!
查看全文