Jupyter的下载与安装

1.下载:

在anaconda的指定环境中

复制代码
conda install nb_conda_kernels

2.打开

在anaconda指定环境中使用命令:

复制代码
jupyter notebook

3.输入指令后,会显示如下,根据显示地址打开

  1. 在右边的new按钮处,选择相应环境,我的虚拟环境是study,所以选择conda env:study

点击后会自动跳转页面

3.运行测试

我输入了

复制代码
import torch

使用 shift+enter,运行代码,并显示下一行

运行成功后,In 中会有数字

复制代码
torch.cuda.is_available()

打印

相关推荐
海海不掉头发13 小时前
【PyTorch 实战】基于 RNN/LSTM/GRU 的全球人名国籍分类器(通俗拆解 + 逐行详解)】
pytorch·rnn·lstm
学术小李1 天前
基于Pytorch,如何用CUDA自己写算子?(一)
人工智能·pytorch·python
a1117761 天前
基于PyTorch的动物图像识别系统 开源
人工智能·pytorch·python
FriendshipT2 天前
Ultralytics:解读Proto模块
人工智能·pytorch·python·深度学习·目标检测
程序员羽痕3 天前
基于 Django + PyTorch 的中文字体识别系统
pytorch·python·django
栈溢出了3 天前
Jupyter 添加虚拟环境 Kernel 笔记
ide·笔记·jupyter
培之3 天前
RTX 5090 安装 pytorch3d
人工智能·pytorch·python
延卿3 天前
nnDetection:基于 PyTorch 的目标检测框架
人工智能·pytorch·目标检测
不懒不懒3 天前
Windows 深度学习环境配置(CUDA12.8 + cuDNN9.x + PyTorch)最简避坑指南(2026 最新)
人工智能·pytorch·深度学习