Python Forum
How yo find "zlib" necessary for "pyenv" in Linux
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How yo find "zlib" necessary for "pyenv" in Linux
#1
Hi all! I am trying to make python 3.7.0 the default language, with "pyenv install 3.7.0" and then
"pyenv global 3.7.0". But when I install 3.7.0, about 5 minutes later, it breaks saying "can'tdecompress data, zlib not available". All my task now is to find and then install "zlib".
I tried already with "sudo apt-get update" followed by "apt-cache search zlib" without success . Have you an idea ? Thanks

@DeaD_EyE Many many thanks. Now 3.7.0 is my default language. Problem solved , with your 3 lines:
apt install build-essential
apt-get install libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev
apt-get install libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev
Reply
#2
it's part of the standard library: https://docs.python.org/3.7/library/zlib.html
This type of error can be found simply by searching python docs, which should be standard practice.
simply:
import zlib
Note: when displaying errors, use error code tags and post complete verbatim error traceback
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Shocked Issues Installing Pyenv/Python 3.9.1 Brandon_Contactum 1 2,461 Feb-22-2022, 06:32 PM
Last Post: snippsat
  Can't install Python 2.6.9 with Pyenv Whyze 6 3,871 May-21-2021, 10:52 PM
Last Post: Whyze
  Zlib tutorials Vwjap 2 2,338 Mar-13-2021, 09:22 PM
Last Post: Vwjap
  zlib decompress error: invalid code lengths set / invalid block type DreamingInsanity 0 6,739 Mar-29-2020, 12:44 PM
Last Post: DreamingInsanity
  Find all “*.wav” files that created yesterday on linux host with python. pydeev 6 4,703 Jan-07-2020, 06:43 AM
Last Post: pydeev
  Pyenv build of python 3.7.0 issue Larz60+ 3 4,217 Dec-03-2018, 09:28 PM
Last Post: Larz60+
  using pyenv and virtual environment created with venv question Larz60+ 3 3,919 Jul-04-2018, 04:30 PM
Last Post: Larz60+
  Use of zlib and iconv in building lxml sachinsharma 3 4,007 Jan-16-2018, 09:12 AM
Last Post: sachinsharma
  pyenv says python 3 is not installed iFunKtion 3 5,632 Oct-11-2016, 07:48 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020