参考资料: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__ (两个下划线):