Ubuntu 安装pip

来源:互联网 发布:中国网络经纪人登录58 编辑:程序博客网 时间:2024/05/06 00:02

方法一:使用apt-get安装

1、升级源:apt-get update
2、安装python-pip和相关的包:apt-get -y install python-pip

方法二:使用curl和Python安装Pip

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"python get-pip.py

验证安装结果

在终端输入:

pip 

如果没说 command not found 并且输出一堆信息,就安装成功了。

0 0