对于新安装的模块,如何让`ipython`导入自动完成工作?

时间:2012-02-05 16:46:18

标签: python autocomplete module ipython

我刚刚在我的计算机上安装了sqlalchemy模块,但是当我在ipython提示符中输入import sql TAB 时,自动完成功能只会向我建议内置{{1} }模块。

如何让ipython在导入自动完成时建议sqlite3

1 个答案:

答案 0 :(得分:12)

根据此消息,

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吗?