Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.
Related Thanks for your reminders though. Thanks George, but unfortunately even sith the sudo -H it does not work :- — Matifou. Add a comment. Active Oldest Votes. Upgrade setuptools using pip The version of python-setuptools in the package repository of Ubuntu Improve this answer.
Community Bot 1. Serge Stroobandt Serge Stroobandt 3, 1 1 gold badge 37 37 silver badges 51 51 bronze badges. This solved my issue with in bionic, cheers. The following command resolved my issue from this answer pip install --upgrade pip. RTbecard RTbecard 3 3 silver badges 11 11 bronze badges. Thanks, upgrading setuptools also did not work for me. But upgrading pip solves the problem. Make sure the version of your pip and setuptools is sufficient for manylinux wheels.
For me, python setup. And after following other threads with the most recommended options to upgrade the setuptools, not using the cached packages, using the local user option, etc Nothing worked. Then, when looking a bit more carefully into the actual error message, I could see that the failing line was also referring to what I thought may be another dependency package: grpcio. So sure enought, I thought about trying also to upgrade or re-install that grpcio package and see what would happen.
And it did upgrade fine. So next I tried to upgrade the google-cloud-bigquery package again, and this time around it also worked perfectly and that solved the problem! So basically it seems that ensuring the whole dependency chain is available and installed properly may do the trick as well, which makes total sense when you think about it. I am not sure whether the second --upgrade is needed, though it does not harm either, the code worked for me. I checked package by package, example from a Dockerfile:.
After all testing, I put them together in two RUN commands, but that is a side-node for the Dockerfile users. In any case. Do not use just pip install , since that will call your default pip, and that might fall on a higher version if you have pip3 installed. Even if not, it is clearer to always use python -m pip so that there is no confusion in the future, if pip3 gets installed later.
Without having tested this, the error of the question is perhaps caused by a pip2 that is asked to install a too recent version of "opencv-python". Then you need to limit "opencv-python" to the latest version available in Python2, which is version 3.
For me, none of the previous worked. The solution was to force the upgrade of pip since the upgrade was inside of the version and not the current one, e. Jump to bottom. InstallationError: Command "python setup. Labels bug dependency. Copy link. Environment Versions Ubuntu Hello y3g0r , Thank you for the report! This also works around pip using git-checkout-index, which gets rid of the.
Wrong return value of a Link. Can you reference the PIP issue? I ran into the same Problem, isn't it? File "
0コメント