安装socketio出现module 'importlib._bootstrap' has no attribute 'SourceFileLoader' 错误

Posted yaks

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装socketio出现module 'importlib._bootstrap' has no attribute 'SourceFileLoader' 错误相关的知识,希望对你有一定的参考价值。

安装socketio出现module ‘importlib._bootstrap‘ has no attribute ‘SourceFileLoader‘ 错误

执行:

pip install --upgrade --ignore-installed setuptools

 

后再执行 pip install socketio 还是无法成功安装

 

下载socketio tar.gz包用源码安装

 

python setup.py install  (如果还是有上面的错误,则重新执行一次 pip install --upgrade --ignore-installed setuptools)

以上是关于安装socketio出现module 'importlib._bootstrap' has no attribute 'SourceFileLoader' 错误的主要内容,如果未能解决你的问题,请参考以下文章