python3出现module "importlib._bootstrap" has no attribute "SourceFileLoader"解决办法

时间:2024-03-28 15:26:05

有时候python或者pycharm会报出这个工具错误,此时使用如下命令重新安装工具包即可。
python3 -m ensurepip --upgrade
python会重新安装setuptools工具包
python3出现module "importlib._bootstrap" has no attribute "SourceFileLoader"解决办法