![当 xenial 说已安装但 jupyter 说尚未安装时,如何升级 pip3?](https://linux22.com/image/1143638/%E5%BD%93%20xenial%20%E8%AF%B4%E5%B7%B2%E5%AE%89%E8%A3%85%E4%BD%86%20jupyter%20%E8%AF%B4%E5%B0%9A%E6%9C%AA%E5%AE%89%E8%A3%85%E6%97%B6%EF%BC%8C%E5%A6%82%E4%BD%95%E5%8D%87%E7%BA%A7%20pip3%EF%BC%9F.png)
上下文:Xenial、pip3、jupyter
我正在尝试安装jupyter
依赖于的pip3
。Jupyter
说要安装它,但是apt
说我已经安装了最新版本。
这里发生了什么?
bugmagnet@Phenomenon2:~$ pip3 install jupyter
The program 'pip3' is currently not installed. You can install it by typing:
sudo apt install python3-pip
bugmagnet@Phenomenon2:~$ sudo apt install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-pip is already the newest version (8.1.1-2ubuntu0.4).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
bugmagnet@Phenomenon2:~$ pip3 install jupyter
The program 'pip3' is currently not installed. You can install it by typing:
sudo apt install python3-pip
答案1
哇,这很奇怪。
我没有python3-pip
在我的系统上安装它,但是当我安装它时,pip3
它就可以工作了。
或许你以某种方式破坏了安装。请尝试apt install --reinstall python3-pip
。
答案2
sudo easy_install pip==20.3.4
pip2 install virtualenv
virtualenv jupyter
source jupyter/bin/activate
pip2 install jupyter
jupyter notebook
该解决方案已在以下平台上测试:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial.
It was run on 32bit Chromenotebook