ubuntu 下更新pip后发生 ImportError: cannot import name 'main'的问题解决

参考资料:https://stackoverflow.com/questions/28210269/importerror-cannot-import-name-main-when-running-pip-version-command-in-windo

国内百度到的2个都是有点问题的,实际上思路是正确的(错误文章:http://www.mamicode.com/info-detail-2264831.html),只是复制的代码有问题。

正确的代码,区别在于国内的import错误,不是main,而是__main__  (两个下划线)


猜你喜欢

转载自blog.csdn.net/jamin2018/article/details/80203559
今日推荐