ubuntu18安装python3, pip3并配置国内源

sudo apt update
sudo apt install python3
sudo apt install python3-pip
sudo mkdir ~/.pip
sudo vim ~/.pip/pip.conf

添加如下内容

[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
posted @ 2020-03-07 22:52  iread9527  阅读(1705)  评论(0编辑  收藏  举报