无法在 ubuntu 17.04 中安装 pip3

无法在 ubuntu 17.04 中安装 pip3

我正在尝试在我的 anaconda 环境中安装 pip3。但我收到以下错误。如能得到任何帮助我将不胜感激。

sudo apt install python3-pip

错误如下:

Err:1 http://in.archive.ubuntu.com/ubuntu zesty-updates/main amd64 libexpat1-dev amd64 2.2.0-2ubuntu0.1   404  Not Found [IP: 91.189.88.152 80] Ign:2 http://in.archive.ubuntu.com/ubuntu zesty-updates/main amd64 libpython3.5-dev amd64 3.5.3-1ubuntu0~17.04.2
Err:3 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 libpython3-dev amd64 3.5.3-1   404  Not Found [IP: 91.189.88.152 80] Ign:4 http://in.archive.ubuntu.com/ubuntu zesty-updates/main amd64 python3.5-dev amd64 3.5.3-1ubuntu0~17.04.2
Err:5 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 python3-dev amd64 3.5.3-1   404  Not Found [IP: 91.189.88.152 80]
Err:1 http://security.ubuntu.com/ubuntu zesty-security/main amd64 libexpat1-dev amd64 2.2.0-2ubuntu0.1   404  Not Found [IP: 91.189.88.152 80]
Err:2 http://security.ubuntu.com/ubuntu zesty-security/main amd64 libpython3.5-dev amd64 3.5.3-1ubuntu0~17.04.2   404  Not Found [IP: 91.189.88.152 80]
Err:4 http://security.ubuntu.com/ubuntu zesty-security/main amd64 python3.5-dev amd64 3.5.3-1ubuntu0~17.04.2    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

答案1

尝试一下:

sudo apt-get update
sudo apt-get install python3-pip

参考:pip 安装

相关内容