Jupyter notebook如何加载torch环境


Jupyter notebook如何加载torch环境

默认你已经安装了anaconda 和 pytorch 环境。

  1. 必须要以管理员身份打开 Anaconda prompt终端,
  1. 进入pytorch环境中:
python 复制代码
conda activate pytorch_39
  1. 安装必要插件:

    (1)conda install nb_conda

    (2)conda install ipykernel

  2. 在Anaconda prompt 中输入下面指令进行启动:

bash 复制代码
jupyter notebook
  1. 在新的Jupyter Notebook的文件中选择Pytorch的内核。
相关推荐
雪域迷影5 分钟前
Python中连接Redis数据库并存储数据
redis·python
vyuvyucd8 分钟前
Python虚拟环境终极指南:venv到uv进阶
开发语言·python·uv
老兵发新帖9 分钟前
基于Label Studio的视频标注与YOLO模型训练全流程指南
python·yolo·音视频
进阶的鱼14 分钟前
一文助你了解Langchain
python·langchain·agent
收菜福星14 分钟前
智能体来了:从 Python 开发者视角深度剖析与实践
python
佑白雪乐20 分钟前
<Python第1集>
开发语言·python
liu****23 分钟前
git工具
git·python·算法·机器学习·计算机基础
rgeshfgreh34 分钟前
2025年Python安装全指南
python
数据大魔方38 分钟前
【期货量化进阶】期货Tick数据分析与应用:高频数据入门(TqSdk完整教程)
python·算法·数据挖掘·数据分析·github·程序员创富·期货程序化
爱吃羊的老虎40 分钟前
Streamlit:快速创建应用界面,无需了解 Web 开发
前端·python