3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

pyenvでinstall中にwgetに失敗する

Last updated at Posted at 2014-10-31

pyenvでpython2.6.6をインストール

# pyenv install 2.6.6

... 略

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

色々しらべたらwgetの時にSSLによる接続が確立できていないからっぽいのでSSLのチェックを無効にしてとりあえずは動いた。

echo "check_certificate = off" >> /etc/wgetrc

もっといい方法ないか…

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?