CmdStan installation failed by using cmdstanpy.install_cmdstan()

I want to install cmdstanpy in the following way:
import cmdstanpy
cmdstanpy.install_cmdstan()

but the error reported as:
WARNING:cmdstanpy:CmdStan installation failed.
WARNING:cmdstanpy:Traceback (most recent call last):
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/site-packages/cmdstanpy/install_cmdstan.py”, line 457, in
main()
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/site-packages/cmdstanpy/install_cmdstan.py”, line 363, in main
if is_version_available(version):
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/site-packages/cmdstanpy/install_cmdstan.py”, line 182, in is_version_available
urllib.request.urlopen(url)
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/request.py”, line 222, in urlopen
return opener.open(url, data, timeout)
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/request.py”, line 525, in open
response = self._open(req, data)
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/request.py”, line 543, in _open
‘_open’, req)
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/request.py”, line 503, in _call_chain
result = func(*args)
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/request.py”, line 1393, in https_open
context=self._context, check_hostname=self._check_hostname)
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/request.py”, line 1353, in do_open
r = h.getresponse()
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/http/client.py”, line 1369, in getresponse
response.begin()
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/http/client.py”, line 310, in begin
version, status, reason = self._read_status()
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/http/client.py”, line 279, in _read_status
raise RemoteDisconnected(“Remote end closed connection without”
http.client.RemoteDisconnected: Remote end closed connection without response

Operating System: macOS Big Sur, version 11.0.1
Interface Version: python 3.7, without installing pystan

Thanks!

Are you able to access github? Are you behind vpn?

yes I open the VPN and clone the github address, but the errors were reported as:

And I also tried to download the latest release from github, and then type ‘make build’ in command window, but the errors were reported as:

how did you download the latest release from github? from this page? Releases · stan-dev/cmdstan · GitHub

also, what kind of Mac and what version of the OS?

Yes I download from this website
MacOS Big Sur
version 11.0.1

are you using a VPN? this looks like some kind of firewall issue.