This uses homebrew in the background to try to install python, which fails with zipimport. ZipImportError: can't decompress data; zlib not available. The same command worked before the upgrade. This question has been asked before and the generally accepted solution is to install xcode command line tools using this command: xcode-select --install.
Incidentally I also looked into installing python from a binary but there's no v3. If you use homebrew, you can install the PIL with just brew install pil.
I ran the above just now on OSX Sara N. Frank Frank 6, 8 8 gold badges 43 43 silver badges 55 55 bronze badges. Confirmed - works on mojave, using brew install zlib also did not work. This was the only thing that worked for me too. Brew was what caused me all the issues in the first place! This works for me on Big Sur. Nothing worked for me except this on Big Sur. I also did a brew install zlib that did nothing. Thank you!! ZipImportError: can't decompress data; zlib not available.
Yaroslav Yaroslav 2, 21 21 silver badges 36 36 bronze badges. Unfortunately none of the above methods worked for me So I did brew reinstall python 2 pip install six Hope it helps.
Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Does ES6 make JavaScript frameworks obsolete? Podcast Do polyglots have an edge when it comes to mastering programming Featured on Meta. Now live: A fully responsive profile. Linked 6. Related Hot Network Questions. Documentation Archive Developer Search. Sending feedback…. Please try submitting your feedback later. Thank you for providing feedback!
Your input helps improve our developer documentation. How helpful is this document? How can we improve this document?
Fix typos or links Fix incorrect information Add or update code samples Add or update illustrations Add information about The code is thread safe. It provides in-memory compression and decompres- sion decompression sion functions, including integrity checks of the uncompressed data. This version of the library supports only one compression method deflation but other algorithms will be added later and will have the same stream interface. Compression can be done in a single step if the buffers are large enough for example if an input file is mmap'ed , or can be done by repeated calls of the compression function.
0コメント