Before this problem, because there is no record, so the second time the pit, so the record of the retention processing
centos6.5, default python2.6, pip1.5.4
Installing Django
Pip Install Django
Execution Result:
downloading/unpacking Django downloading Django-2.1.1.Tar. GZ (8.6MB):8. 6MB downloaded Running setup.py (path:/tmp/pip_build_root/django/setup.py) Egg_info forPackage Django Traceback (most recent call Last): File"<string>", line -,inch<module>File"/tmp/pip_build_root/django/setup.py", line +,inch<module>""". Format (* (Required_python + Current_python )))Valueerror:zero Length field nameinchformat complete output from command python setup.py egg_info:traceback (most recent call Last): File"<string>", line -,inch<module>File"/tmp/pip_build_root/django/setup.py", line +,inch<module>""". Format (* (Required_python + Current_python )))valueerror:zero Length field nameinchformat----------------------------------------cleaning Up...command python setup.py egg_info failed with error code1 inch/tmp/pip_build_root/djangostoring Debug Log forFailureinch/root/.pip/pip.log
Log content:
Valueerror:zero Length field nameinchformat----------------------------------------Cleaning up ... Removing temporarydir/tmp/Pip_build_root...command python setup.py egg_info failed with error code1 inch/tmp/pip_build_root/djangoexception Information:traceback (most recent call Last): File"/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/basecommand.py", line122,inchMain status=self.run (options, args) File"/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/commands/install.py", line278,inchrun requirement_set.prepare_files (finder, Force_root_egg_info=self.bundle, bundle=self.bundle) File"/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/req.py", line1229,inchprepare_files req_to_install.run_egg_info () File"/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/req.py", line325,inchRun_egg_info Command_desc='python setup.py egg_info') File"/usr/lib/python2.6/site-packages/pip-1.5.4-py2.6.egg/pip/util.py", line697,inchcall_subprocess%(Command_desc, Proc.returncode, CWD)) Installationerror:command python setup.py egg_info failed with error code1 inch/tmp/pip_build_root/django
Suspicion is not pretending setuptools
Install--upgrade pip Setuptools
Successfully installed Pip setuptoolscleaning up ...
Continue to install Django attempts .... Error
Traceback (most recent call Last): File"/usr/bin/pip", line7,inch<module>From pip._internal Import main File"/usr/lib/python2.6/site-packages/pip/_internal/__init__.py", line the,inch<module>From pip._internal import cmdoptions File"/usr/lib/python2.6/site-packages/pip/_internal/cmdoptions.py", line -,inch<module>From pip._internal.index import (File"/usr/lib/python2.6/site-packages/pip/_internal/index.py", line536{str (c.version) forCinchAll_candidates},
This error is more obvious.
is a Python version issue because the default of 2.6 is not supported and requires a minimum of 2.7, so upgrade 2.7 resolves.
python2.6 using PIP to install Django error