Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't install ZIP with PIP.
#1
I need to install zip: pip install zip (Python3). I tried though conda and virtualenv.
I'm getting an error:
Output:
Using cached https://files.pythonhosted.org/packages/41/9e/309259ce8dff8c596e8c26df86dbc4e848b9249fd36797fd60be456f03fc/wsgiref-0.1.2.zip ERROR: Command errored out with exit status 1: command: /home/Iam/anaconda3/envs/kivy_venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-aswcd5z2/wsgiref/setup.py'"'"'; __file__='"'"'/tmp/pip-install-aswcd5z2/wsgiref/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-aswcd5z2/wsgiref/pip-egg-info cwd: /tmp/pip-install-aswcd5z2/wsgiref/ Complete output (8 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-aswcd5z2/wsgiref/setup.py", line 5, in <module> import ez_setup File "/tmp/pip-install-aswcd5z2/wsgiref/ez_setup/__init__.py", line 170 print "Setuptools version",version,"or greater has been installed." ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Setuptools version",version,"or greater has been installed.")? ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Reply
#2
https://github.com/kdheepak/zip/issues/3

what exactly you want use this package for?
there is builtin zipfile module https://docs.python.org/3/library/zipfile.html
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
I need to install Buildozer for Kivy. When I tried there was an error which told that I have to have ZIP.
Reply
#4
post whatever errors you get installing buildozer
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#5
Ok, I got it, I had to install ZIP package for OS, not those from PIP. Everything works now. (it was during usage of buildozer, not during install actually)
Thought those package (pip's zip) couldn't be installed - strange.
Thanks, probably I wouldn't notice that without this conversation.
Reply


Forum Jump:

User Panel Messages

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