擅长:python、mysql、java
<p>看起来您正在运行不同版本的Python(shell中的3.5.4和IPython中的3.6.1)。在</p>
<p>您可以使用<code>conda list</code>列出活动环境中安装的包和版本。我怀疑您运行的是来自不同环境的<code>ipython</code>。查看它是否安装在活动环境中。如果在列表中没有看到它,请使用<code>conda install -n {env_name} ipython</code>安装它。在</p>
<p>更新:在用<code>conda</code>安装<code>ipython</code>之后,我总是需要再次<code>source activate {env_name}</code>。安装其他软件包似乎不需要重新采购。在</p>