-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
PEP implementationInvolves some PEPInvolves some PEPstate: needs discussionThis needs some more discussionThis needs some more discussiontype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior
Description
- Pip version: 10.0.1
- Python version: 3.6.5
- Operating system: openSUSE
Description:
Since version 10 pip raises an exception during installation for some python packages.
pip._internal.exceptions.DistributionNotFound: No matching distribution found for setuptools
Although the setuptools are installed.
setuptools 39.1.0
setuptools-scm 2.0.0
With pip version 9 everything works fine.
What I've run:
One python package which fails with pip installation is dateutil.
# /usr/local/python/bin/pip3.6 install --verbose --no-index .
Ignoring indexes: https://pypi.org/simple
Created temporary directory: /tmp/pip-ephem-wheel-cache-titakidg
Created temporary directory: /tmp/pip-install-idx4_e_v
Processing /tmp/workspace/python-dateutil-2.7.2
Created temporary directory: /tmp/pip-req-build-h_jueb1s
Created temporary directory: /tmp/pip-build-env-lz7qvsgc
0 location(s) to search for versions of setuptools:
Could not find a version that satisfies the requirement setuptools (from versions: )
Cleaning up...
Removing source in /tmp/pip-req-build-h_jueb1s
No matching distribution found for setuptools
Exception information:
Traceback (most recent call last):
File "/usr/local/python/lib/python3.6/site-packages/pip-18.0.dev0-py3.6.egg/pip/_internal/basecommand.py", line 228, in main
status = self.run(options, args)
File "/usr/local/python/lib/python3.6/site-packages/pip-18.0.dev0-py3.6.egg/pip/_internal/commands/install.py", line 291, in run
resolver.resolve(requirement_set)
File "/usr/local/python/lib/python3.6/site-packages/pip-18.0.dev0-py3.6.egg/pip/_internal/resolve.py", line 103, in resolve
self._resolve_one(requirement_set, req)
File "/usr/local/python/lib/python3.6/site-packages/pip-18.0.dev0-py3.6.egg/pip/_internal/resolve.py", line 257, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/local/python/lib/python3.6/site-packages/pip-18.0.dev0-py3.6.egg/pip/_internal/resolve.py", line 210, in _get_abstract_dist_for
self.require_hashes
File "/usr/local/python/lib/python3.6/site-packages/pip-18.0.dev0-py3.6.egg/pip/_internal/operations/prepare.py", line 324, in prepare_linked_requirement
abstract_dist.prep_for_dist(finder, self.build_isolation)
File "/usr/local/python/lib/python3.6/site-packages/pip-18.0.dev0-py3.6.egg/pip/_internal/operations/prepare.py", line 150, in prep_for_dist
build_requirements)
File "/usr/local/python/lib/python3.6/site-packages/pip-18.0.dev0-py3.6.egg/pip/_internal/operations/prepare.py", line 59, in _install_build_reqs
for r in build_requirements
File "/usr/local/python/lib/python3.6/site-packages/pip-18.0.dev0-py3.6.egg/pip/_internal/operations/prepare.py", line 59, in <listcomp>
for r in build_requirements
File "/usr/local/python/lib/python3.6/site-packages/pip-18.0.dev0-py3.6.egg/pip/_internal/index.py", line 533, in find_requirement
'No matching distribution found for %s' % req
pip._internal.exceptions.DistributionNotFound: No matching distribution found for setuptools
mjos, bencaine-integral and blakehawkins
Metadata
Metadata
Assignees
Labels
PEP implementationInvolves some PEPInvolves some PEPstate: needs discussionThis needs some more discussionThis needs some more discussiontype: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior