Python

PPG007 ... 2022-2-26 Less than 1 minute

# Python

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install python3.7
sudo apt-get install python3-venv
sudo apt install python3-pip
# then config pip
mkdir ~/.pip
vim ~/.pip/pip.conf
1
2
3
4
5
6
7
8
9

add this to pip.conf:

[global]
index-url=http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
1
2
3
4
Last update: February 26, 2022 13:26
Contributors: ppg007