Linux下pyenv install 2.6.8時download失敗
- 錯誤提示
[root@CentOS-64-Python ~]# pyenv install 2.6.8
Downloading Python-2.6.8.tgz...
-> http://python.org/ftp/python/2.6.8/Python-2.6.8.tgz
error: failed to download Python-2.6.8.tgz
BUILD FAILED (CentOS 5.5 using python-build 20151210)
- 解決方法
- 修改
/root/.pyenv/plugins/python-build/bin/python-build
或which python-build
的http_get_curl函數,在curl中添加-k參數 - 如圖所示
- 修改