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