真的是慢到无以复加 ,可能是因为墙吧
万恶的墙啊
下面是我的解决办法
1.开始下载
这个命令很慢所以目前不执行
promote:python-build lixiang$ pyenv install anaconda3-5.3.0
Downloading Anaconda3-5.3.0-MacOSX-x86_64.sh...
-> https://repo.continuum.io/archive/Anaconda3-5.3.0-MacOSX-x86_64.sh
用下载工具比如Free Download Manager 下载下来
下载路径就在上面: https://repo.continuum.io/archive/Anaconda3-5.3.0-MacOSX-x86_64.sh ; freeDownload Manager自行下载
然后进入
pyenv 的安装目录,我的安装目录是 ,注意路径上有两个python-build
/usr/local/Cellar/pyenv/1.2.9/plugins/python-build/share/python-build
此路径下有对应的配置文件
然后打开 vim anaconda3-5.3.0
case "$(anaconda_architecture 2>/dev/null || true)" in
"Linux-x86" )
install_script "Anaconda3-5.3.0-Linux-x86" "https://repo.continuum.io/archive/Anaconda3-5.3.0-Linux-x86.sh#c15ffac2ae35179a15dc5872e5bb405b4027a0fd76c6817e9cee39545bc5ca0b" "anaconda" verify_py36
;;
"Linux-x86_64" )
install_script "Anaconda3-5.3.0-Linux-x86_64" "https://repo.continuum.io/archive/Anaconda3-5.3.0-Linux-x86_64.sh#cfbf5fe70dd1b797ec677e63c61f8efc92dad930fd1c94d60390bb07fdc09959" "anaconda" verify_py36
;;
"MacOSX-x86_64" )
# 此处修改 成本地的服务器地址
# install_script "Anaconda3-5.3.0-MacOSX-x86_64" "https://repo.continuum.io/archive/Anaconda3-5.3.0-MacOSX-x86_64.sh#bc073b6e6d3b2ef29d01a2caf1de7c206c95968231ef0492d958eae1a314b4e9" "anaconda" verify_py36
install_script "Anaconda3-5.3.0-MacOSX-x86_64" "http://localhost:8081/Anaconda3-5.3.0-MacOSX-x86_64" "anaconda" verify_py36
;;
* )
{ echo
colorize 1 "ERROR"
echo ": The binary distribution of Anaconda3 is not available for $(anaconda_architecture 2>/dev/null || true)."
echo
} >&2
exit 1
;;
esac
开启一个http服务器
export PYTHON_BUILD_MIRROR_URL=”http://127.0.0.1:8081/”
到下载地址执行python3 -m http.server
然后执行命令
pyenv install anaconda3-5.3.0
即可