Home > No Module > Python Error No Module Named Zlib

Python Error No Module Named Zlib

Contents

To emailaddress: To name: From name: Extra information in the email body (optional): Email: I am sending you the codedump of Import error no module named zlib (brew installed python) that Posting resources What Have You Tried (.com) How to ask a software question Writing the perfect question Code hosting Pastebin Github gist Related subreddits Python related /r/python /r/flask /r/django /r/pygame General If the ./configure step can't find it, it'll disable it from your build. Can a nuclear detonation on Moon destroy life on Earth? this contact form

[email protected]:~$ virtualenv -p python2.7 --no-site-packages testenv Running virtualenv with interpreter /home/jwxie518/.pythonbrew/pythons/Python-2.7.1/bin/python2.7 Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/virtualenv.py", line 17, in import zlib ImportError: No module named zlib EDIT I I just use the packages, and haven't had a problem. Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Actually ls /usr/include/zlib.h validates this. http://stackoverflow.com/questions/6169522/no-module-named-zlib

Python Zlib Module Install

Just installing the build requirements won't retroactively link it in. Read posting guidelines. but when I type: virtualenv -p python3.5 test I get: Running virtualenv with interpreter /usr/local/bin/python3.5 Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/virtualenv.py", line 17, in import zlib ImportError: No module Easily googleable questions are not allowed.

Ubuntu 14.04, Python 2.7.10 /usr/local/bin/python2.7, package I need to install is zlib Thanks in advance SOLVED $ sudo apt-get install zlib1g-dev $ wget python.org/ftp/python/2.7.10/Python-2.7.10.tgz $ tar xfz Python-2.7.10.tgz $ cd Python-2.7.10/ Keep in mind your mileage may vary, but this might help I hope. Word for making your life circumstances seem much worse than they are Unix Exit Command How to explain leaving a job for a huge ethical/moral issue to a potential employer - Python Install Zlib Windows SSCCE Keep your code Short, Self Contained, Correct (Compilable) and provide Example Include the error you get when running the code, if there is one.

Kernc nothing worked for me until I manually edited ./Python2.5/Modules/Setup and uncommented the line starting with: zlib zlibmodule.c … quite sad. :S jc That was the only thing that worked for No Module Named Zlib Virtualenv permalinkembedsaveparentgive gold[–]JohnnyJordaan 0 points1 point2 points 10 months ago(2 children)Are you sure you are using a virtualenv for python 3? We recommend upgrading to the latest Safari, Google Chrome, or Firefox. Provide links to related resources.

[email protected]:~$ virtualenv -p python3.2 --no-site-packages testenv Running virtualenv with interpreter /home/jwxie518/.pythonbrew/pythons/Python-3.2/bin/python3.2 New python executable in testenv/bin/python3.2 Also creating executable in testenv/bin/python Installing distribute..................................................................................................................................................................................................................................................................................................................................done. Python Zlib Not Available If the above thing does not work: download the source package for your Python (in this case wget python.org/ftp/python/2.7.10/Python-2.7.10.tgz) run ./configure --prefix=/path/to/python make make install share|improve this answer edited Mar 3 Install the Zlib-dev package for your distribution. (you probably have zlib already, but not the dev package) On Ubuntu it's called ‘zlib1g-dev', on others it might just be: zlib-dev or zlib-devel. It is an easy solution.

  1. Installing pip...............done.
  2. I was confused between your two python environments.
  3. However, I received the same error when I tried import zlib, so I guess I have to do something to install zlib into the lib.
  4. python virtualenv zlib ubuntu-10.10 share|improve this question asked May 29 '11 at 18:16 CppLearner 5,5711866127 the 3.2 is unnecessary i think.
  5. Be polite.

No Module Named Zlib Virtualenv

Here is a link to the solution - http://doc.biblissima-condorcet.fr/loris-setup-guide-ubuntu-debian I followed and executed instruction in Section 1.1 and it is working perfectly! Try the command below to see whether the zlib Python package is available and which version it has: for Python 2.x: python -c "import zlib; print(zlib.__version__)" for Python 3.x: python3 -c Python Zlib Module Install Ask Ubuntu works best with JavaScript enabled ([email protected])~ $ | Programming Education Guides/Troubleshooting Notes Resume Contact [SOLUTION] Ubuntu Python 2.6 No module named zlib The issue Certain important Python libraries require Importerror No Module Named Zlib Centos Half the pentagon!

Ensure your example is correct. weblink Do a search on your distro package lists to find it. Can someone please direct me in the right direction??? Prerequisites Ensure the following packages are installed $ sudo apt-get install zlib1g zlib1g-dev Download the latest source of Python2.6 (which is Python 2.6.9 at the time of this article) ~$ cd No Module Named Zlib Mac

Helped greatly.. Reload to refresh your session. But I suppose depends on software you are using and versions you need, plus these 64bit systems and libs complicate things a little. navigate here Either the example compiles cleanly, or causes the exact error message about which you want help.

I also installed PyPDF2 package. Python Import Zlib Not Found Posting screenshot of the code is (generally) not allowed. share|improve this answer answered Jan 11 '14 at 21:52 l0b0 19.8k660118 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign

but i just tried to install zlib1g-dev but it seems like i have that installed already (i tried a few other commands like -f install) zlib1g-dev is already the newest version.

To compile Zlib support into your Python interpreter, do this: 1. Read posting guidelines. Be polite. Python Zlib Windows How does break enchantment work on stone shaped wall? "There is no well-ordered uncountable set of real numbers" Is it a Good UX to keep both star and smiley rating system

Virtualenvs are great things but won't help here. Upstream Python is being patched, but that doesn't really help as they are only doing it with current versions of Python So we need to locate the libz shared library file Read posting guidelines. http://vealcine.com/no-module/python-error-no-module-named.php Install the xcode CLI with: xcode-select --install Then before reinstalling Python with brew I check if the zlib header is where brew is looking for it via the terminal : ls

DDoS ignorant newbie question: Why not block originating IP addresses? Non payment on (Phone) Handset Lease Can a nuclear detonation on Moon destroy life on Earth? I have hard time telling others my problem and this is a long thread... Don't build Python yourself.

what can i do to make virtualenv work with python3.5? It comes with python 2.7 but I'm familiar with the 3.4.3 version so I installed it following a youtube guide video (https://www.youtube.com/watch?v=H4pPBPhjMQA).