pyenv

macOS์—์„œ pyenv๋กœ python ์„ค์น˜์‹œ ์˜ค๋ฅ˜ ๋ฐœ์ƒ

JoonHo Son
<< ํ˜„์žฌ ์‚ฌ์šฉ ์ค‘์ธ macOS ๋ฒ„์ „ >> ํ˜„์žฌ ๋‚ด๊ฐ€ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” MBPR์˜ macOS ๋ฒ„์ „์€ 10.14.4(๋ฒ ํƒ€)์ด๋‹ค. ๊ฐœ์ธ ์ž‘์—…์„ ํ•˜๋ ค๊ณ  pyenv๋กœ python 3.7.2 ๋ฒ„์ „์„ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ•˜๋‹ˆ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. $ pyenv install 3.7.2 python-build: use openssl from homebrew python-build: use readline from homebrew ...(์—๋Ÿฌ) zipimport.ZipImportError: can't decompress data; zlib not available make: *** [install] Error 1 ๊ธ€๋ง์„ ํ•ด๋ณด๋‹ˆ macOS 10.14(Mojave)์—์„œ ๋ฐœ์ƒํ•˜๋Š” ์˜ค๋ฅ˜๋กœ pyenv issue๋กœ ๋“ฑ๋ก์ด ๋˜์—ˆ๋‹ค๊ณ  ํ•œ๋‹ค. ์›์ธ์€ Xcode 10๋ถ€ํ„ฐ๋Š” Command line tools์—์„œ /include์— ํ—ค๋”ํŒŒ์ผ์„ ์„ค์น˜ํ•˜์ง€ ์•Š์•„์„œ ๋ฐœ์ƒํ•œ๋‹ค๊ณ  ํ•œ๋‹ค.