解决python查询第三方库的开源协议
weixin_44120204:
C:\Users\dell>li
Traceback (most recent call last):
File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\dell\AppData\Local\Programs\Python\Python310\Scripts\li.exe\__main__.py", line 4, in
File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\site-packages\license_info.py", line 4, in
from pip import get_installed_distributions
ImportError: cannot import name 'get_installed_distributions' from 'pip' (C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\__init__.py)
|