2
1

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 1 year has passed since last update.

mac で pyenv で python 3.7.2 がインストールできないとき

Posted at

社内で発生した問題をみんなで解決しました。メモとして残しておきます。

問題

mac で pyenv で python 3.7.2 がインストールできない

$ pyenv install 3.7.2
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.2.tar.xz...
-> https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz
Installing Python-3.7.2...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 11.5.2 using python-build 20180424)

環境

  • macOS Monterey
  • zsh

解決法

以下の方法で解決しました。

$ pyenv install --patch 3.7.2 < <(curl -sSL https://github.com/python/cpython/commit/8ea6353.patch\?full_index\=1)

参考

こちらの記事はbash用のコマンドになっていたようでzshではそのまま実行できなかったのでzsh用のコマンドに変更しました。
https://teratail.com/questions/323061

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?