12/30/2023 0 Comments Gfxcardstatus 2.2.1![]() ![]() Good luck!Īll that's needed is sudo pip install -upgrade requests. It is also possible to install a newer pip 10.0.1 at the user-level ( -user) alongside your OS-vendored pip but you need to be careful about that. It should even deploy a newer pip for you inside of its virtual envs. You can test everything in a virtualenv ( apt show python-virtualenv). Or install newer urllib3 and chardet (you can download the wheel files manually from and do pip install on them, including any dependencies), either at user level ( -user pip install option) or in a virtualenv. Urllib3 (1.9.1) from python-urllib3 1.9.1-3 debian packageĬhardet (2.3.0) from python-chardet 2.3.0-1 debian packageĮither downgrade requests to the version from your OS distribution (see what's available with apt show python-requests), or older versions at, or The requests (which version? likely leftover from pip install) requires: You do have a mixed setup (both apt and pip were used to install system-wide, which is common), and it indeed doesn't match the supported versions of modules required by requests (and pip v1.5.6 is also quite old). Ii python-chardet 2.3.0-1 all universal character encoding detector for Python2 My versions are : ii python-urllib3 1.9.1-3 all HTTP library with thread-safe connection pooling for Python "version!".format(urllib3._version_, chardet._version_), ![]() Warnings.warn("urllib3 () doesn't match a supported " # Check imported dependencies for compatibility.Ĭheck_compatibility(urllib3._version_, chardet._version_) Major, minor, patch = int(major), int(minor), int(patch) Major, minor, patch = urllib3_version # noqa: F811 Here are the lines about urllib3 and chardet versions needed :Įxtract of /usr/local/lib/python2.7/dist-packages/requests/_init_.py : # Check urllib3 for compatibility. So I did : sudo apt remove python-chardet What I did : pip install -upgrade chardetīut as explain up, it gaves me the same error. ImportError: cannot import name DependencyWarning Module = _import_(self.module_name, fromlist=, level=0)įile "/usr/lib/python2.7/dist-packages/pip/_init_.py", line 74, in įrom pip.vcs import git, mercurial, subversion, bazaar # noqaįile "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in įile "/usr/lib/python2.7/dist-packages/pip/download.py", line 22, in įile "/usr/local/lib/python2.7/dist-packages/requests/_init_.py", line 90, in įrom urllib3.exceptions import DependencyWarning Return get_distribution(dist).load_entry_point(group, name)įile "/usr/local/lib/python2.7/dist-packages/pkg_resources/_init_.py", line 2691, in load_entry_pointįile "/usr/local/lib/python2.7/dist-packages/pkg_resources/_init_.py", line 2322, in loadįile "/usr/local/lib/python2.7/dist-packages/pkg_resources/_init_.py", line 2328, in resolve Load_entry_point('pip=1.5.6', 'console_scripts', 'pip')()įile "/usr/local/lib/python2.7/dist-packages/pkg_resources/_init_.py", line 480, in load_entry_point I get : /usr/local/lib/python2.7/dist-packages/requests/_init_.py:80: RequestsDependencyWarning: urllib3 (1.9.1) or chardet (2.3.0) doesn't match a supported version! I found several pages about this issue but none of them solved my problem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |