ipython 2.7.15+ -> 3.x
ipython 2.7.15+ -> 3.x
我是 python 的新手,之前只用过 C。我使用 ubuntu 18.04。
无论如何,我的一个朋友给了我获取 ipython 来测试命令的提示,所以我通过 "pip install ipython" 安装了它,但我只有 v2.7.15+,ipython 和 ipython2是这个版本。
我试图四处寻找解决方案,但找不到任何东西。有人知道怎么办吗?
如果您安装了 python3,只需使用:
python3 -m pip install ipython
-m
用于模块:
When called with -m module-name, the given module is located on the Python module path and executed as a script.
来自Command line and environment @ Interface options
编辑:
尝试做:
pip3 install ipython
如果这不起作用,请尝试这样做:
sudo apt install python3-pip
然后是以上之一。
我是 python 的新手,之前只用过 C。我使用 ubuntu 18.04。 无论如何,我的一个朋友给了我获取 ipython 来测试命令的提示,所以我通过 "pip install ipython" 安装了它,但我只有 v2.7.15+,ipython 和 ipython2是这个版本。 我试图四处寻找解决方案,但找不到任何东西。有人知道怎么办吗?
如果您安装了 python3,只需使用:
python3 -m pip install ipython
-m
用于模块:
When called with -m module-name, the given module is located on the Python module path and executed as a script.
来自Command line and environment @ Interface options
编辑:
尝试做:
pip3 install ipython
如果这不起作用,请尝试这样做:
sudo apt install python3-pip
然后是以上之一。