'PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version, has anyone seen this before
/home/user/.local/lib/python3.8/site-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 0.1.36ubuntu1 is an invalid version and will not be supported in a future release
Solution 1:[1]
This error message started to pop up for me once i've updated pip though itself . All i've done to get rid of this message was uninstalling the initial pip version that was previously installed via my operating system's package manager e.g. APT. You can additionally inspect the ones available at your path with the whereis
command.
Conventionally the system-installed pip version would be usually accessible via /usr/bin/pip
whereas the one updated via pip itself resides at ~/.local/bin/pip3
, so be mindful of which version takes precedence in invocation .
If you were to do that, then post uninstalling the former version , make sure to clear the shell's cache entailing the paths of previously invoked commands using hash -c
or just open up another shell session.
Solution 2:[2]
I had a similar error upon upgrading the Ubuntu version to 20.
Removing the the python3-debian
package via sudo apt-get remove --auto-remove python3-debian
worked for me.
Solution 3:[3]
This appears to be an error in the following file: ~/.local/lib/python3.8/site-packages/pkg_resources/__init__.py
and is possibly (probably) related to the import _imp
statement(s) near the top of the file.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | |
Solution 2 | krencar |
Solution 3 | Flimm |