python pip 小记

使用sudo权限

sudo -H  [   ]

python命令 为符号软连接,可指向python2或3,默认2.7 。使用python3可以改软连接也可直接使用python3(也是软连接)

pip 与 pip3 对应python2和3

pip list 显示安装的包

pip -V 显示版本

更新pip 

sudo -H pip install --upgrade pip  
sudo -H pip3 install --upgrade pip

“It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall “类似问题:

Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

解决:

sudo pip3 install six --upgrade --ignore-installed six

猜你喜欢

转载自blog.csdn.net/haha074/article/details/86609097
今日推荐