简体   繁体   English

已安装Ipython3,但版本仍显示1.2.1

[英]Installed Ipython3 but the version still says 1.2.1

The python version I have is 3.4.3. 我拥有的python版本是3.4.3。 I tried using the Ipython3 qtconsole but same issue 我尝试使用Ipython3 qtconsole但存在相同问题

The ipython3 executable just means "IPython for Python 3", it doesn't have any relationship to the version of IPython itself. ipython3可执行文件仅表示“ IPython for Python 3”,与IPython本身的版本没有任何关系。 IPython 1.2.1 is still the current version that ships with some Linux distros, so if you installed with apt-get or yum , this is likely the reason. IPython 1.2.1仍是某些Linux发行版附带的当前版本,因此,如果您使用apt-getyum安装,则可能是原因。 If you want a more recent version, you can install with pip : 如果您需要更新的版本,可以使用pip安装:

python3 -m pip install --upgrade ipython

If pip list shows a recent version of IPython, but starting ipython still shows an old version, it could be because setuptools has corrupted your path via a file called easy-install.pth . 如果pip list显示了IPython的最新版本,但是启动ipython仍然显示了旧版本,则可能是因为setuptools通过一个名为easy-install.pth的文件损坏了您的路径。 Look for these files on your system, and check if there are any /usr/lib/python3.4/dist-packages in there. 在您的系统上查找这些文件,并检查其中是否存在任何/usr/lib/python3.4/dist-packages If so, remove those lines because it's wrong for that path to be included in the file. 如果是这样,请删除这些行,因为该路径包含在文件中是错误的。

You may also remove the outdated IPython with 您也可以使用以下方法删除过时的IPython:

apt-get remove ipython

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM