1.python安装3.8后,需要安装相关软件包,例如pandas等,但是有如下错误:
image.png
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/selectors.py", line 12, in <module>
import select
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/select.cpython-38-darwin.so, 2): Symbol not found: ____chkstk_darwin
Referenced from: /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/select.cpython-38-darwin.so (which was built for Mac OS X 11.0)
Expected in: /usr/lib/libSystem.B.dylib
in /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/select.cpython-38-darwin.so
从如下链接看,大概率是macos版本 14.0 (14.0)版本和python3.8.10版本不兼容导致;
https://blog.csdn.net/qq_23347459/article/details/123412027
降低python版本到3.7后,问题解决:
image.png image.png
网友评论