Installez python 2.6.6 avec pyenv
# pyenv install 2.6.6
...Abréviation
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
Après avoir vérifié diverses choses, il semble que la connexion par SSL n'ait pas été établie au moment de wget, j'ai donc désactivé la vérification SSL et cela a fonctionné pour le moment.
echo "check_certificate = off" >> /etc/wgetrc
Y a-t-il une meilleure façon ...
Recommended Posts