Symbol not found: __PyCodecInfo_GetIncrementalDecoder

后端 未结 12 587
借酒劲吻你
借酒劲吻你 2020-11-30 01:18

Since updating from Homebrew Python 2.7.11 (from 2.7.10) I\'m suddenly unable to test register my package on PyPi from the PyCharm IDE console.

Running (as an \"Exte

12条回答
  •  [愿得一人]
    2020-11-30 01:42

    Reinstall python.

    brew unlink python && brew reinstall python
    

    Secure the path

    export PYTHONPATH=$PYTHONPATH:/usr/local/bin/
    

    BACKUP and Change the order of "paths" file.

    sudo nano /etc/paths
    

    it seems, the order of paths, it is decisive to run python properly. In my case, the result was:

    #sudo nano /etc/paths
      /usr/bin  
      /usr/local/bin
      /bin
      /usr/sbin
      /sbin
    

    On my mac, path is like this.

    $ which python
        /usr/local/bin/python
    

    Now I can run both:

    $ /usr/local/bin/python -c "import io"
    $ python -c "import io"
    

提交回复
热议问题