美文网首页
Mac 问题修复记录

Mac 问题修复记录

作者: 锦鼠观天 | 来源:发表于2018-08-10 15:07 被阅读334次

    1. Jupyter notebook 在 Anaconda 更新后无法打开

    参考办法:github+最新版jupyter无法打开怎么办

    启动 jupyter notebook 报错:

    Traceback (most recent call last):
      File "/Users/heqin/anaconda3/bin/jupyter-notebook", line 7, in <module>
        from notebook.notebookapp import main
      File "/Users/heqin/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 46, in <module>
        from zmq.eventloop import ioloop
      File "/Users/heqin/anaconda3/lib/python3.6/site-packages/zmq/__init__.py", line 47, in <module>
        from zmq import backend
      File "/Users/heqin/anaconda3/lib/python3.6/site-packages/zmq/backend/__init__.py", line 40, in <module>
        reraise(*exc_info)
      File "/Users/heqin/anaconda3/lib/python3.6/site-packages/zmq/utils/sixcerpt.py", line 34, in reraise
        raise value
      File "/Users/heqin/anaconda3/lib/python3.6/site-packages/zmq/backend/__init__.py", line 27, in <module>
        _ns = select_backend(first)
      File "/Users/heqin/anaconda3/lib/python3.6/site-packages/zmq/backend/select.py", line 26, in select_backend
        mod = __import__(name, fromlist=public_api)
      File "/Users/heqin/anaconda3/lib/python3.6/site-packages/zmq/backend/cython/__init__.py", line 6, in <module>
        from . import (constants, error, message, context,
    ImportError: dlopen(/Users/heqin/anaconda3/lib/python3.6/site-packages/zmq/backend/cython/error.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libsodium.23.dylib
      Referenced from: /Users/heqin/anaconda3/lib/libzmq.5.dylib
      Reason: image not found
    

    重新安装下zeromq

    参考办法推荐先卸载再安装,我觉得本身问题就是由于更新引起的,于是直接 install, 让它自动更新就行,会发现 libsodium 这个报错的库也一并更新了。

    heqin@heqindeMacBook-Pro:~$conda install zeromq
    Solving environment: done
    
    ## Package Plan ##
    
      environment location: /Users/heqin/anaconda3
    
      added / updated specs:
        - zeromq
    
    
    The following packages will be downloaded:
    
        package                    |            build
        ---------------------------|-----------------
        zeromq-4.2.5               |       h0a44026_0         495 KB
    
    The following packages will be UPDATED:
    
        libsodium: 1.0.13-hba5e272_2 --> 1.0.16-h3efe00b_0
        zeromq:    4.2.3-h378b8a2_3  --> 4.2.5-h0a44026_0
    
    Proceed ([y]/n)? y
    
    
    Downloading and Extracting Packages
    zeromq-4.2.5         |  495 KB | ####################################### | 100%
    Preparing transaction: done
    Verifying transaction: done
    Executing transaction: done
    

    2. 待续

    相关文章

      网友评论

          本文标题:Mac 问题修复记录

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