添加jupyter内核
时间: 2023-10-25 19:31:51 浏览: 106
要将环境配置为Jupyter的内核,可以按照以下步骤进行操作:
1. 首先,在Jupyter Notebook的"Change Kernel"选项中检查是否已经存在您要关联的环境。如果没有看到您想要的环境,那可能是因为该环境尚未正确配置为Jupyter的内核。
2. 在命令行中使用conda创建一个新的环境,命令如下:
```
conda create -n '环境名' python='版本号'
```
请将'环境名'替换为您希望添加为Jupyter内核的环境的名称,将'版本号'替换为您想要的Python版本。
3. 在所创建的环境中添加Jupyter内核。在命令行中运行以下命令:
```
python -m ipykernel install --name 环境名
```
请将'环境名'替换为您所创建的环境的名称。请注意,此命令是在普通Python环境下运行的,而不是在要添加内核的环境下运行的。
完成上述步骤后,您应该能够在Jupyter Notebook的"Change Kernel"选项中看到您添加的环境作为一个可用的内核。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Jupyter配置内核](https://blog.csdn.net/NoNameRemained/article/details/130825282)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [向 jupyter 中添加内核](https://blog.csdn.net/qq_45668004/article/details/120364030)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文
相关推荐


















