pip install ImportError: cannot import name 'SourceDistribution'
Posted dhcn
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
以上是关于pip install ImportError: cannot import name 'SourceDistribution'的主要内容,如果未能解决你的问题,请参考以下文章