why can't install setuptools in debian7?

October 22, 2014 1.8k views

I want to install setuptools according to the web.
In my vps console:
root@online:~# python3
Python 3.4.0 (default, Oct 22 2014, 09:59:53)
[GCC 4.7.2] on linux
Type "help", "copyright", "credits" or "license" for more information.


root@online:~# wget -O - | python3
--2014-10-22 11:42:56--
Resolving (
Extracting in /tmp/tmpyj3d9kc
Traceback (most recent call last):
File "<stdin>", line 332, in <module>
File "<stdin>", line 329, in main
File "<stdin>", line 51, in _install
File "/usr/local/python3.4/lib/python3.4/", line 59, in _
return next(self.gen)
File "<stdin>", line 101, in archivecontext
File "/usr/local/python3.4/lib/python3.4/", line 1240, in extractall
self.extract(zipinfo, path, pwd)
File "/usr/local/python3.4/lib/python3.4/", line 1228, in extract
return self.
extractmember(member, path, pwd)
File "/usr/local/python3.4/lib/python3.4/", line 1290, in _extract
with, pwd=pwd) as source, \
File "/usr/local/python3.4/lib/python3.4/", line 1210, in open
closefileobj=not self.filePassed)
File "/usr/local/python3.4/lib/python3.4/", line 651, in init
self.decompressor = _getdecompressor(self.compresstype)
File "/usr/local/python3.4/lib/python3.4/", line 614, in getdecompressor
return zlib.decompressobj(-15)
AttributeError: 'NoneType' object has no attribute 'decompressobj'

How can i install the setuptools on my debian7+python3?

4 Answers

I see instructions for python 2.x installs of setuptools, but nothing for the 3.x branch of python. Have you tried this:

wget -O - | python

instead of

wget -O - | python3

notice the call to "" over "", and the "python" rather than "python3"?

If that doesn't work, let us know.

When I try "", I get "404 not found", by the way.

Why don't you install python3-setuptools or python-setuptools? They both are available in the repository.

My application is writen in python3 , it should be python3 installed in my droplet.

apt-get install python3-setuptools


Have another answer? Share your knowledge.