美文网首页
Ubuntu 安装及使用 pip

Ubuntu 安装及使用 pip

作者: Manchangdx | 来源:发表于2018-02-28 01:16 被阅读0次

首先安装 pip:
sudo apt install -y python-pip

然后安装 pip3:
sudo apt install -y python3-pip

更新 pip 版本:
sudo pip install --upgrade pip

更新 pip3 版本:
sudo pip3 install --upgrade pip

查看已安装的 python 包:

# 查看全部已安装的包
mcdx@ubuntu:~$ pip freeze
apturl==0.5.2
beautifulsoup4==4.4.1
blinker==1.3
chardet==2.3.0
checkbox-support==0.22
  ...

# 查看某个包
mcdx@ubuntu:~$ pip freeze | grep Flask
Flask==0.12.2
Flask-SQLAlchemy==2.3.2

相关文章

网友评论

      本文标题:Ubuntu 安装及使用 pip

      本文链接:https://www.haomeiwen.com/subject/tibvxftx.html