'NoneType' object has no attribute 'decompressobj' while installing Bootstrap setuptools
Your problem seems to be you compiled Python without support for zlib. Make sure you have zlib-devel installed (sudo apt-get install zlib1g-dev
) before compiling Python.
There's nothing wrong with using Python compiled by you in addition or instead of the system one. However you have to remember to be explicit when invoking Python and invoke the one you intend to use by specifying full path like /usr/local/bin/python
instead of plain python
. Alternatively you can add (/usr/local/bin/
) to your PATH
before /usr/bin/
so that when you type python
system runs your compiled Python.