python,pip配置镜像源(方便以后装别的库)

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
相当于你以后安装库的时候都在清华源镜像中下。
永久配置镜像源,以后比如说你想装一个模块TensorFlow
pip install tensorflow
就直接在镜像源中下载了,下载速度很快。

猜你喜欢

转载自blog.csdn.net/qq_42671505/article/details/108532863