You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I am trying to type yip <some package>, it returns me some messages
|----------------------------------------------------------------------------------------------------| 0.0% Traceback (most recent call last):
File "/usr/local/bin/yip", line 434, in<module>
installed_packages = get_installed()
File "/usr/local/bin/yip", line 152, in get_installed
return {i.key: i.version foriinpip.get_installed_distributions()}
AttributeError: module 'pip' has no attribute 'get_installed_distributions'
It seems that it does not work on pip 10 and above. It could probably be solved by from pip._internal.utils.misc import get_installed_distributions instead of pip.get_installed_distributions directly.
My pip version:
$ pip3 -V
pip 10.0.1 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
When I am trying to type
yip <some package>, it returns me some messagesIt seems that it does not work on pip 10 and above. It could probably be solved by
from pip._internal.utils.misc import get_installed_distributionsinstead ofpip.get_installed_distributionsdirectly.My pip version:
Reference