【问题标题】:How can I change my python version in jupyter notebook? [duplicate]如何在 jupyter notebook 中更改我的 python 版本? [复制]
【发布时间】:2021-09-22 14:05:23
【问题描述】:

我的 jupyter 笔记本中有 python3,但我也想为 python2 制作它。如何为这两个版本安装?

【问题讨论】:

标签: python


【解决方案1】:

首先单击内核选项卡,然后会显示一个下拉菜单。单击更改内核并选择 python 2。如果没有显示 python 2,请查看:

How to change jupyter kernel from Python 2 to python 3?

你可以让它反转。

【讨论】:

  • 我的 jupyter 中没有看到任何内核选项。
  • 抱歉有,但没有 python2 选项。
【解决方案2】:

Jupyter 将使用安装在您工作环境中的 python 版本启动。

如果你想使用多个版本的python,可以使用Conda这样的环境管理系统,用不同版本的python创建不同的环境。

Miniconda 是 conda 的轻量级版本,您可以使用它来获得所需的内容。

【讨论】:

    猜你喜欢
    • 2022-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-15
    相关资源
    最近更新 更多