- 如果没有安装,就先安装pip3
sudo apt install python3-pip
- 使用pip3时,会发现下载Python第三方库特别慢,因此改为国内镜像以提速
vim ~/.pip/pip.conf
- 这里直接替换为阿里源了
[global]
timeout = 6000
index-url = https://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com
sudo apt install python3-pip
vim ~/.pip/pip.conf
[global]
timeout = 6000
index-url = https://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com