Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我用 升级了我的IPython安装pip,当我使用 时ipython,它失败了:
IPython
pip
ipython
Traceback (most recent call last): File "<string>", line 1, in <module> AttributeError: 'module' object has no attribute 'Shell'
但是当我尝试时$(which ipython),它可以正常启动。
$(which ipython)
这可能是什么原因AttributeError?
AttributeError
在 ~/.ipython 下查看。那里可能有一个使用旧 API 的配置脚本。
原来aliasin.bashrc覆盖了ipythonin $PATH,并且被设置为旧版本的 ipython
alias
.bashrc
$PATH