pip install socketio后崩溃,问题就是socketio
AttributeError: module ‘importlib._bootstrap’ has no attribute ‘SourceFileLoader’
我做了一些研究,发现socketio是一个未维护的包。不幸的是,它将尝试安装setuptools==3.3(而当前版本是62.1.0)^1。因为我使用pip install socketio安装了socketio
解决方法:python3 -m pip install setuptools --upgrade
参考
https://stackoverflow.com/questions/69343581/every-action-shows-attributeerror-module-importlib-bootstrap-has-no-attribu/71822501#71822501?newreg=61179e048fd3429482f508513f130f18