python源码 配置报错

1、在git克隆时,报错 unable to access ‘XXX‘: Recv failure: Connection was reset

解决办法:执行下面语句:

git config --global --unset http.proxy
git config --global --unset https.proxy

2、pip install 安装包报错ERROR: Could not find a version that satisfies the requirement XXX

解决办法:选用稳定的pip源并且信任它的来源就可以解决这种问题

阿里云镜像源:

pip install xxx -i http://mirrors.aliyun.com/simple/ --trusted-host mirrors.aliyun.com

豆瓣源:

pip install xxx -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

猜你喜欢

转载自blog.csdn.net/henulmh/article/details/130532797
今日推荐