2
0

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.

pipenv(pyenv)で新しいpythonがinstallされないとき

Last updated at Posted at 2019-04-05

1.環境

  • ubuntu 18.04 (docker)
  • pyenv 1.2.10-2-g3176c8b7 (2019/4/5時点最新)

2.エラー

root@b19a1760d4e6:~# pipenv install --python 3.6.8
Warning: Python 3.6.8 was not found on your system…
Would you like us to install CPython 3.6.8 with pyenv? [Y/n]: Y
Installing CPython 3.6.8 with pyenv (this may take a few minutes)…
✘ Failed...
Something went wrong…
Downloading Python-3.6.8.tar.xz...
-> https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz

Warning: The Python you just installed is not available on your PATH, apparently.

pipenvの下で動いてるpyenvでも同じ感じになった。

root@b19a1760d4e6:~# pyenv install 3.6.8
Downloading Python-3.6.8.tar.xz...
-> https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tar.xz
root@b19a1760d4e6:~#

Downloading以降が何もなく、エラーも出ない。

3.原因

findしてもPython-3.6.8.tar.xzが見つからないのでおかしいと思ったら,wget(とcurlも)が入っていなかった.
pyenvはwgetがないと静かに死ぬのか...

wget入れたらインストールできた.

root@b19a1760d4e6:~# apt install wget

docker環境だと結構ハマりそう。

しかもpipenvから実行したときだとエラーメッセージがインストールは完了したけどパスの問題みたいにみえるのでややこしい。

4.備考

issueあげてみるか,と思ったら既にあった.
pyenv install fails silently when downloader not found
一年前&まだオープン

2
0
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?