Ubuntu 14.04 install python-pip

xiaoxiao2021-02-27  131

sudo apt-get update 出现问题:

解决方案: (1) //删除  sudo rm -fR /var/lib/apt/lists/*   //新建相应文件夹   sudo mkdir /var/lib/apt/lists/partial   //重新update   sudo apt-get update

(2) 修改dns:

配置文件地址 /etc/resolv.conf 改为如下内容:

search localdomain nameserver 8.8.8.8 nameserver 8.8.4.4 重启网络: sudo /etc/init.d/networking restart

(3) sudo apt-get install -f sudo apt-get autoremove sudo apt-get clean sudo apt-get update

然后安装python-pip

sudo apt-get install python-pip

转载请注明原文地址: https://www.6miu.com/read-15201.html

最新回复(0)