New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing pip install: distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr') #3757
Comments
Nevermind, that is my canned response to this stuff, but seems to be unrelated to your issue. |
This looks like an issue with your company proxy. pbr exists on PyPI, and there is not a whole lot we can do for you if you are unable to pull down dependencies. Sorry. :-/ |
You could also try setting the |
Hey, I can actually hit the pbr site on my browser, if that's the case could I download the pbr package somewhere and have pip continue using that? I think it is a proxy issue though so I'm continuing to try to figure out my proxy settings. Thanks! |
Yep - you can download the source distribution (zip) and just |
Well interesting enough I managed to get past the issue by doing |
For the information of other people who may happen on the problem (this page is top-ranked on google for "distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse": when running pip install, the installation of second-level requirements may be done by an older method with different behavior (easy_install) than the primarily requested packages. Look above your error "Traceback" for confirmation of the different behavior and just above the DistutilsError for a mention of easy_install. If this is indeed the problem, then doing an explicit pip install of the not-found packages will solve it. Adding the package to the top of requirements.txt may be a useful workaround. |
Another debugging tip: check the traceback for which Python is trying to install setuptools_scm, because it may be different than the Python in your path. In my case it was homebrew, pip, and Anaconda colliding. Uninstalling & reinstalling things and then restarting iTerm fixed it for me. |
My traceback had pip using easy_install but installing with pip shows that the package is already satisfied D: |
To fix your problem I think that you can tap the command |
@Ladinstar i am having the same issue while installing rpy2 library. I installed pbr but still no luck. |
or you could use a virtual environment to get around library conflicts |
Same, not working for installing matplotlib |
Python 2 jobs recently started failing frequently with the following error: distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr>=2.0.0') The root cause appears to be that indirect requirements are handled by easy_install which doesn't like some index servers [1]. Try updating setuptools first. [1] googleapis/google-cloud-python#3757 (comment) Change-Id: I95303e52f2b462ceda21abaa4097cc9291362d33
Python 2 jobs recently started failing frequently with the following error: distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr>=2.0') The root cause appears to be that indirect requirements are handled by easy_install which doesn't like some index servers [1]. Install the latest setuptools first to work around the issue. Disable upgrade jobs since the same issue is affecting Kayobe installation in the previous release (Rocky). [1] googleapis/google-cloud-python#3757 (comment) Change-Id: I1b86c5f58d0c3b63269766eaa8e76af18b5fadb1
Python 2 jobs recently started failing frequently with the following error: distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr>=2.0') The root cause appears to be that indirect requirements are handled by easy_install which doesn't like some index servers [1]. Install the latest setuptools first to work around the issue. Disable IPA builds on CentOS 7 which are failing due to the same issue and would require a fix inside DIB itself. [1] googleapis/google-cloud-python#3757 (comment) Change-Id: I1b86c5f58d0c3b63269766eaa8e76af18b5fadb1 Depends-On: https://review.opendev.org/c/openstack/kayobe/+/785869
Thanks, man, you saved my day :) |
Currently having trouble trying to pip install google-cloud on my Mac. As soon as it gets to trying to install tenacity it runs into issues.
OS: OS X Sierra 10.12.6.
Python Version: 2.7.13
Pip version: 9.0.1
setuptools version: 36.2.7
Under company proxy but added proxy parameter and have installed other python packages using pip.
Stacktrace here:
The text was updated successfully, but these errors were encountered: