14
2

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 3 years have passed since last update.

mac Big Surでpyenv経由でpythonをインストールした時の「zipimport.ZipImportError」の対応について

Posted at

mac Big Surでpyenv経由でpythonをインストールした時にzipimport.ZipImportError: can't decompress data; zlib not available というエラーが出た時の対応についてのメモとなります。

環境

  • macOS Big Sur version 11.0.1
  • pyenv 1.2.21

対応

やってみたこと①

CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install 3.8.6

やってみたこと②

やってみたこと③

xcode-select --install

やってみたこと④

  • AppStoreでXcodeをインストールしてみた。結果変わらず。。。

やってみたこと⑤

LDFLAGS="-L$(xcrun --show-sdk-path)/usr/lib" pyenv install 3.8.6

できた!

Big Surの情報が少なく、苦労しましたがなんとかpyenvをインストールできました。

参考

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?