当 xenial 说已安装但 jupyter 说尚未安装时,如何升级 pip3?

当 xenial 说已安装但 jupyter 说尚未安装时,如何升级 pip3?

上下文:Xenial、pip3、jupyter

我正在尝试安装jupyter依赖于的pip3Jupyter说要安装它,但是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

快照:xenial 上的 teminal 和 Frefox

相关内容