Skip to main content

常用配置

pip 镜像配置

pip3 config --user set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip3 config --user set install.trusted-host mirrors.aliyun.com

--global Use the system-wide configuration file only
--user Use the user configuration file only
--site Use the current environment configuration file only

Virtual Environment 配置

python3 -m venv py_env && source ./py_env/bin/activate
python3 -m pip3 install --upgrade pip3 wheel setuptools