美文网首页
Mac python3.8 无法显示解释器中的软件包

Mac python3.8 无法显示解释器中的软件包

作者: shasha075 | 来源:发表于2023-02-05 23:08 被阅读0次

    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

    相关文章

      网友评论

          本文标题:Mac python3.8 无法显示解释器中的软件包

          本文链接:https://www.haomeiwen.com/subject/nzvohdtx.html