Python3: no gzip or zlib?

Is this module now called something else? I can not find any information that this module is outdated or completely discarded. (which would even bother me)

Does anyone know where this went?

Python 3.1.2 (r312: 79147, May 20 2010, 09:09:30)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gzip
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/local/lib/python3.1/gzip.py", line 9, in 
    import zlib
ImportError: No module named zlib

UPDATE: I found this in the original bundle, in which I used Python-3.1.2 / Modules / zlib / ChangeLog The last change was in 2005, and it says nothing.

                ChangeLog file for zlib

Changes in 1.2.3 (18 July 2005)
- Apply security vulnerability fixes to contrib / infback9 as well
- Clean up some text files (carriage returns, trailing space)
- Update testzlib, vstudio, masmx64, and masmx86 in contrib [Vollant]

[SOLVED] http://www.1stbyte.com/2005/06/26/configure-and-compile-python-with-zlib/

+3
source share
1 answer

(Answered by editing the URL into a question. Converted to the community wiki. See Unanswered question, but resolved the problem in the comments (or expanded in the chat) )

OP wrote (a):

[SOLVED] http://www.1stbyte.com/2005/06/26/configure-and-compile-python-with-zlib/

SO URL-, GregTheGeek . , , :

  • Zlib-dev. , Ubuntu zlib1g-dev. zlib.h include.
  • python configure script: ./configure –with-zlib=/usr/include
  • make make install .
+4

Source: https://habr.com/ru/post/1773852/


All Articles