-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
Description
Suddenly, I get this error when trying to install Python 3.5 (started to happen with the latest version) on OS X 10.11:
Last 10 log lines:
File "/private/var/folders/cb/cxxqz_g94jd1x5tjwrklxgd00000gn/T/python-build.20151008192643.16552/Python-3.5.0/Lib/ensurepip/__main__.py", line 4, in <module>
ensurepip._main()
File "/private/var/folders/cb/cxxqz_g94jd1x5tjwrklxgd00000gn/T/python-build.20151008192643.16552/Python-3.5.0/Lib/ensurepip/__init__.py", line 209, in _main
default_pip=args.default_pip,
File "/private/var/folders/cb/cxxqz_g94jd1x5tjwrklxgd00000gn/T/python-build.20151008192643.16552/Python-3.5.0/Lib/ensurepip/__init__.py", line 116, in bootstrap
_run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/private/var/folders/cb/cxxqz_g94jd1x5tjwrklxgd00000gn/T/python-build.20151008192643.16552/Python-3.5.0/Lib/ensurepip/__init__.py", line 40, in _run_pip
import pip
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1
pyenv: version `3.5.0' is not installed
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
yyuu commentedon Oct 9, 2015
You just don't have zlib.
thomasjo commentedon Oct 9, 2015
@nikolay Ensure that your Xcode (including Command Line Tools) is up to date. Latest version is v7.0.1.
nikolay commentedon Oct 9, 2015
I do have both, of course. zlib is installed via Homebrew and I have Xcode 7.1 beta and I haven't updated it since it worked last time, i.e. it's not the beta version of Xcode.
thomasjo commentedon Oct 9, 2015
Well, something is wrong with your environment, because it works perfectly fine on my (clean) OS X 10.11 (15A284) system with Xcode 7.0.1 (7A1001).
karamosky commentedon Oct 9, 2015
Same issue for me too, 3.4.x build correctly but not 3.5, Xcode is up to date
nikolay commentedon Oct 9, 2015
Well, I'm not sure what's wrong with my environment if 3.4.3 builds and 3.5.0 doesn't.
yyuu commentedon Oct 9, 2015
Hmm, sounds interesting.
For more investigation, could you create a gist from output of 'pyenv install -v 3.5'?
karamosky commentedon Oct 11, 2015
https://gist.github.com/karamosky/9e3fcf22b2f84e2e9466
swarajban commentedon Oct 18, 2015
@nikolay I had the same issue, and was able to fix by updating command line tools on OSX. Just run
xcode-select --installOnce, that's finished, you should be able to install 3.5.0
nikolay commentedon Oct 20, 2015
@swarajban I've done this, of course. It's not that. It does not work. I tried once more. Same exact issue. 3.4.3 works, 3.5.0 fails miserably.
yyuu commentedon Oct 21, 2015
Umm. I've finished upgrading to El Capitan, but I couldn't reproduce the build failure of 3.5.0 on it....
VirtualWolf commentedon Oct 27, 2015
I was having the same problem. The fix for me, despite already having Xcode installed and up-to-date (7.1), was running
xcode-select --installand installing the command line tools.qtfkwk commentedon Oct 28, 2015
I also had this issue but it's fixed now via
xcode-select --install... I have XCode 7.1... Homebrew, etc, are working fine otherwise... no complaints about xcode-select, libraries missing, etc before trying to install Python 3.5.0. I will try to remember to runxcode-select --installfrom now on after upgrading XCode. Here's a copy of my session:yyuu commentedon Nov 13, 2015
Run
xcode-select --installto fix installation of Command Line Tools for Xcode working.21 remaining items