python - Pip is rolling back uninstall of setuptools -
i using this ansible-django stack deploy django project aws ec2 instance. worked fine long time, suddenly, error below when deploying.
it seems there new setuptools
build not updated.
- why rollback uninstall of
setuptools
? - why not install
setuptools
36.2.2?
specifying explicitly version of setuptools
in requirements solves issue, since indirectly dependent on setuptools
, should not responsibility know version keep.
installing collected packages: shared-django, setuptools found existing installation: shared-django 0.1.0 uninstalling shared-django-0.1.0: uninstalled shared-django-0.1.0 running setup.py install shared-django: started running setup.py install shared-django: finished status 'done' found existing installation: setuptools 36.2.0 uninstalling setuptools-36.2.0: uninstalled setuptools-36.2.0 rolling uninstall of setuptools :stderr: exception: traceback (most recent call last): file \"/webapps/catalogservice/lib/python3.5/site-packages/pip/basecommand.py\", line 215, in main status = self.run(options, args) file \"/webapps/catalogservice/lib/python3.5/site-packages/pip/commands/install.py\", line 342, in run prefix=options.prefix_path, file \"/webapps/catalogservice/lib/python3.5/site-packages/pip/req/req_set.py\", line 784, in install **kwargs file \"/webapps/catalogservice/lib/python3.5/site-packages/pip/req/req_install.py\", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) file \"/webapps/catalogservice/lib/python3.5/site-packages/pip/req/req_install.py\", line 1064, in move_wheel_files isolated=self.isolated, file \"/webapps/catalogservice/lib/python3.5/site-packages/pip/wheel.py\", line 247, in move_wheel_files prefix=prefix, file \"/webapps/catalogservice/lib/python3.5/site-packages/pip/locations.py\", line 140, in distutils_scheme d = distribution(dist_args) file \"/webapps/catalogservice/lib/python3.5/site-packages/setuptools/dist.py\", line 365, in __init__ self._finalize_requires() file \"/webapps/catalogservice/lib/python3.5/site-packages/setuptools/dist.py\", line 372, in _finalize_requires if not self.install_requires: attributeerror: 'distribution' object has no attribute 'install_requires'
i had ssh server , run
python -m pip install --upgrade -vv setuptools
and deployed again , worked.
Comments
Post a Comment