打开Pycharm的终端,如图所示 

Python配置pip使用阿里云镜像源_文件地址


配置使用阿里云镜像

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple

其中, https://mirrors.aliyun.com/pypi/simple 为阿里云的镜像文件,开发者也可根据自己的需求和习惯,在网上搜索并配置其他可用的镜像文件地址。

使用如下检查配置后的结果:

pip config get global.index-url

Python配置pip使用阿里云镜像源_文件地址_02