pip临时使用清华镜像

可以在使用pip的时候加参数-i https://pypi.tuna.tsinghua.edu.cn/simple

例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mysqlclient,这样就会从清华这边的镜像去安装mysqlclient库。

你可能感兴趣的:(python,数据库,pip,清华镜像)