我刚刚在我的计算机上安装了 sqlalchemy
模块,但是当我在 ipython 提示符中键入 import sql
和 TAB 时,自动完成仅提示我是内置的 sqlite3
模块。
如何让 ipython 在导入自动完成时也建议 sqlalchemy
?
最佳答案
基于这条消息,
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
了吗?
关于python - 对于新安装的模块,如何让 `ipython` import autocomplete 起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9151003/