Install python 2.6.6 with pyenv
# pyenv install 2.6.6
...Abbreviation
error: failed to install setuptools via ez_setup.py
BUILD FAILED
Inspect or clean up the working tree at /tmp/python-build.20141031114520.16491
Results logged to /tmp/python-build.20141031114520.16491.log
Last 10 log lines:
downloader_factory=options.downloader_factory,
File "/tmp/python-build.20141031114520.16491/ez_setup.py", line 287, in download_setuptools
downloader(url, saveto)
File "/tmp/python-build.20141031114520.16491/ez_setup.py", line 224, in download_file_wget
_clean_check(cmd, target)
File "/tmp/python-build.20141031114520.16491/ez_setup.py", line 169, in _clean_check
subprocess.check_call(cmd)
File "/root/.pyenv/versions/2.6.6/lib/python2.6/subprocess.py", line 488, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['wget', 'https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.zip', '--quiet', '--output-document', '/tmp/python-build.20141031114520.16491/Python-2.6.6/setuptools-7.0.zip']' returned non-zero exit status 1
When I looked up various things, it seems that the connection by SSL was not established at the time of wget, so I disabled the SSL check and it worked for the time being.
echo "check_certificate = off" >> /etc/wgetrc
Is there a better way ...
Recommended Posts