【 Solutions 】IPython 與 Python 版本不一致造成啟動錯誤

【 Solutions 】IPython 與 Python 版本不一致造成啟動錯誤

問題

  • 當啟動 IPython 時出現下方錯誤訊息

    -----2019-12-12---4.05.20

    • 原因為安装的 Python 版本是 3.5,但 IPython 版本卻是 7.10+,兩邊的版本不符合,所以降低 IPython 版本即可解決。

解決方案

  • 移除已安裝的 IPython

    • 輸入以下指令進行解除安裝

      pip3 uninstall -y ipython 

      -----2019-12-12---4.10.08

  • 安裝 7.9.0 版本的 IPython

    • 輸入以下指令進行安裝

      pip3 install "ipython[notebook]==7.9.0" 

      -----2019-12-12---6.30.12

  • 啟動 IPython Jupyter

    • 輸入以下指令進行啟動
    jupyter notebook 

    -----2019-12-12---4.13.01


GitHub
List of blogs