pip install ImportError: cannot import name 'SourceDistribution'

问题原因: pip v20.0的bug
解决办法:手动升级pip


curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

Then run the following command in the folder where you have downloaded get-pip.py:

python get-pip.py
原文地址:https://www.cnblogs.com/dhcn/p/12233120.html