pip安装报403错误 解决方法


问题使用清华源(https://pypi.tuna.tsinghua.edu.cn) pip安装报403错误ERROR: HTTP error 403 while getting https://pypi.tuna.tsinghua.edu.cn/packages/16/18/9726cac3c7c

更换docker容器里的pip源。


先进入容器docker ps docker exec -it 容器ID /bin/bash更换源pip config set global.index-url https://mirrors.aliyun.com/pypi/simple # 永久配置国内镜像源pip config list国内源列表