deepin操作系统安装pip
安装pip
sudo apt install python3-pip
更换pip源
mkdir ~/.pip
vi ~/.pip/pip.conf
使用阿里云镜像,写入以下内容:
[global]
index-url = https://mirrors.aliyun.com/pypi/simple
之后在英文输入法下输入: + w + q + Enter 退出文件编辑
升级pip
pip3 install -U pip
使用
例如安装包
pip3 install pandas