我是靠谱客的博主 纯情黑夜,这篇文章主要介绍please make sure you are connected to the lnternet,现在分享给大家,希望可以做个参考。

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(99)

评论列表共有 0 条评论

立即
投稿
返回
顶部