python使用国内源

Young_Yang_Yang / 2023-05-24 / 原文

全局使用国内源

pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple
pip config set global.trusted-host mirrors.cloud.tencent.com