Python安装软件异常记录
案例一:
使用pip的时候,报错:ImportError: cannot import name ‘SourceDistribution’ from ‘pip._internal.distributions.source’ (/Users/v_chenyushen/anaconda3/lib/python3.7/site-packages/pip/_internal/distributions/source/init.py)
解决办法
依次执行这两步:
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- python get-pip.py