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啦
发布了37 篇原创文章 · 获赞 3 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/github_34790294/article/details/103606603
今日推荐