The error occurs when I try to install vscode during installing anaconda3
redirect to anaconda3 installation directory, search for vscode_inst.py, go to line 142
- def haveInternet():
- try:
- r = requests.head(VSCODE_ENDPOINT, timeout=5)
- assert r.status_code == 200
- return True
- except Exception as e:
- log.exception('haveInternet')
- return False
add allow_redirects in line142 before
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
- def haveInternet():
- try:
- r = requests.head(VSCODE_ENDPOINT, timeout=5, allow_redirects=True)
- assert r.status_code == 200
- return True
- except Exception as e:
- log.exception('haveInternet')
- return False
next input yes and it will work then
最后
以上就是纯情黑夜最近收集整理的关于please make sure you are connected to the lnternet的全部内容,更多相关please内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复