jupyter配置venv

  1. 激活存在的venv
  2. pip install ipykernel
    安裝過程中可能出現如下錯誤
ERROR: Could not find a version that satisfies the requirement prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 (from ipython>=5.0.0->ipykernel) (from versions: none)
ERROR: No matching distribution found for prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 (from ipython>=5.0.0->ipykernel)

需要先安裝prompt-toolkit,注意版本

  1. python -m ipykernel install --user --name aaa --display-name “aaa”
  2. 刷新 jupyter頁面,然後在右上角的new下拉就可以看到aaa啦
發佈了42 篇原創文章 · 獲贊 6 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章