Ubuntu下Unable to locate package pip

问题:

(diffusion) Vago@Precision3630:~/diffusion-master$ python --version
Python 2.7.17
(diffusion) Vago@Precision3630:~/diffusion-master$ sudo apt install pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package pip

解决方案:

sudo apt-get install software-properties-common
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install python-pip

原因:
需要更新apt的资源路径

你可能感兴趣的:(Ubuntu问题记录,ubuntu,pip)