在学习python的时候安装库,因为网络的问题便出现这个问题如图,
经过百度得知要切换镜像源
使用如下代码
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
又出现新的问题
继续查找问题得知需要先切换到pip.exe所在的目录再进行切换镜像源
假设我的pip.exe在C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\Scripts这个地方
所以要先执行
cd C:\Users\Administrator\AppData\Local\Programs\Python\Python37-32\Scripts
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。