将原来的:
from pip import main
if __name__ == '__main__':
sys.exit(main())
改为:
from pip import __main__
if __name__ == '__main__':
sys.exit(__main__._main())
将原来的:
from pip import main
if __name__ == '__main__':
sys.exit(main())
改为:
from pip import __main__
if __name__ == '__main__':
sys.exit(__main__._main())
本文标题:更新 pip 后出现 main 错误
本文链接:https://www.haomeiwen.com/subject/ggiyxqtx.html
网友评论