pycharm安装包时报错解决
pycharm 报错:NameError: name 'pip' is not defined
def do_install(pkgs): try: # import pip try: from pip._internal import main except Exception: from pip import main except ImportError: error_no_pip() return main(['install'] + pkgs)def do_uninstall(pkgs): try: # import pip try: from pip._internal import main except Exception: from pip import main except ImportError: error_no_pip() return main(['uninstall', '-y'] + pkgs)
报错解决参考:
https://www.cnblogs.com/Fordestiny/p/8901100.html
https://segmentfault.com/q/1010000014743128
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。