CmdStan installation failed by using cmdstanpy.install_cmdstan()

I want to install cmdstanpy in the following way:
import cmdstanpy

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/”, line 457, in
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/site-packages/cmdstanpy/”, line 363, in main
if is_version_available(version):
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/site-packages/cmdstanpy/”, line 182, in is_version_available
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/”, line 222, in urlopen
return, data, timeout)
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/”, line 525, in open
response = self._open(req, data)
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/”, line 543, in _open
‘_open’, req)
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/”, line 503, in _call_chain
result = func(*args)
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/”, line 1393, in https_open
context=self._context, check_hostname=self._check_hostname)
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/urllib/”, line 1353, in do_open
r = h.getresponse()
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/http/”, line 1369, in getresponse
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/http/”, line 310, in begin
version, status, reason = self._read_status()
File “/Users/xinyuanyan/opt/anaconda3/envs/cmdstanenv/lib/python3.7/http/”, 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


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.