6
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でこけて途方に暮れた話 (on MacOSX mojave)

Last updated at Posted at 2018-10-24

事象

標題の環境にてpyenv installしたところ、下記のようなエラーを吐いて失敗した。

zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1

こちらを参考に、xcode-select --installを実行したところ、以下のエラーを吐かれた。

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

さぁ、どうしよう、、。

解決策

以下を実行。

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

再度 pyenv install実行したところ、無事インストール完了した。

誰かのお役に立てれば幸いです。

参考
https://github.com/pyenv/pyenv/issues/1219

6
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
6
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?