pip
# 启用pip
python3 -m ensurepip
# 更新pip
python -m pip install --upgrade pip
虚拟环境
# 创建虚拟环境
python3 -m venv py3_venv
# 激活虚拟环境
source ./py3_venv/bin/activate
# 启用pip
python3 -m ensurepip
# 更新pip
python -m pip install --upgrade pip
# 创建虚拟环境
python3 -m venv py3_venv
# 激活虚拟环境
source ./py3_venv/bin/activate