-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zipimport.ZipImportError #1919
Comments
Looks like your Python was built without zip support. Presumably it's a custom build? You need that support for get-pip to work. |
Yeah,my python is customly builded. |
Thank you, |
As I guess you found out (just mentioning it here in case anyone later finds this issue when searching) you just need the relevant libraries available when building Python (I think it's just zlib, but I'm not completely sure on that) |
Yeah, you guess is right! |
1.Install the zlib the newest version |
Fantastic, many thanks. |
can you elaborate more the solution? i am facing the same problem and when trying the command ./configure --prefix=/root/Python-2.7.8 --with-zlib-dir=/usr/local/lib i get unrecognized command --with-lib-dir |
I'm also getting the unrecognized command --with-lib-dir. Is there a workaround? |
@hrdcore0x1 maybe you want Make sure you have zlib (+development headers) package installed. |
Thank you, I got it working!
|
Where am I supposed to run the ./configure command? I keep getting "bash: ./configure: No such file or directory" |
@NivaldoTeixeira directly inside the unzipped python sources folder. This is if you are building your python executable / installation from scratch. https://github.com/python/cpython/blob/master/configure is the file in SCM. |
hi andy , i got error msessage
so , what's up ? i think that pip have already installed . thanks a lot. |
@winecos try It will list all the files installed for pip, provided |
To confirm that pip is in your path, you may also use On Friday, April 8, 2016, Matt Iversen [email protected] wrote:
|
In the python source folder |
For me, it doesn't work. |
@alanyee i have the same problem |
The error: zipimport.ZipImportError: can't decompress data; zlib not available
|
@andy15703166 also
btw
What worked for me (@ vagrant oel65-i386-plain) was (not completely but at least killed zlib issue) was:
|
^^ second that. zlib was installed but I got the above error when building pip. installing the devel package resolved the issue on RHEL 7 |
You can follow here. It work fine for me. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When I run the command "python get-pip.py",It alerts that as below:
How to do that?Thank you!
The text was updated successfully, but these errors were encountered: