網站首頁 編程語言 正文
pytorch部署到jupyter中
在安裝Aconda的同時,會將jupyter notebook一起安裝,不過這里的jupyter notebook是base中的jupyter notebook二不是pytorch中的jupyter notebook,因此并不能在此jupyter notebook運行torch包。
base中的jupyter:
兩種解決方案
一、base中重新安裝pytorch
二、pytorch中安裝jupyter notebook
這里選擇第二種方法
首先
conda activate pytorch
進入到pytorch環境中去
在pytorch環境中看包
conda list
沒有我們需要的包,因此輸入命令,進行下載jupyter
conda install nb_conda_kernels
進行下載
下載完成后輸入命令:
jupyter notebook
打開jupyter notebook
注:我再輸入的時候出現了一些無法定位的提示,但是我的電腦沒有影響使用jupyter,還是可以使用jupyter并且可以import torch
點擊確定,就可以來到jupyter notebook的頁面了
讓我們來驗證一下
原文鏈接:https://blog.csdn.net/weixin_45527999/article/details/124574230
相關推薦
- 2022-09-15 python基于tkinter圖形化編程實現簡易計算器功能_python
- 2022-05-29 Python格式化字符串的案例方法_python
- 2022-09-06 一文詳解Python如何優雅地對數據進行分組_python
- 2022-04-25 可空類型Nullable<T>用法詳解_C#教程
- 2022-01-08 使用grid布局解決flex布局最后一行不足的問題
- 2022-12-27 flutter?text組件使用示例詳解_Android
- 2022-07-14 設置Redis最大占用內存的實現_Redis
- 2022-05-06 Python判斷字符串中是否有整數、小數、百分數
- 最近更新
-
- window11 系統安裝 yarn
- 超詳細win安裝深度學習環境2025年最新版(
- Linux 中運行的top命令 怎么退出?
- MySQL 中decimal 的用法? 存儲小
- get 、set 、toString 方法的使
- @Resource和 @Autowired注解
- Java基礎操作-- 運算符,流程控制 Flo
- 1. Int 和Integer 的區別,Jav
- spring @retryable不生效的一種
- Spring Security之認證信息的處理
- Spring Security之認證過濾器
- Spring Security概述快速入門
- Spring Security之配置體系
- 【SpringBoot】SpringCache
- Spring Security之基于方法配置權
- redisson分布式鎖中waittime的設
- maven:解決release錯誤:Artif
- restTemplate使用總結
- Spring Security之安全異常處理
- MybatisPlus優雅實現加密?
- Spring ioc容器與Bean的生命周期。
- 【探索SpringCloud】服務發現-Nac
- Spring Security之基于HttpR
- Redis 底層數據結構-簡單動態字符串(SD
- arthas操作spring被代理目標對象命令
- Spring中的單例模式應用詳解
- 聊聊消息隊列,發送消息的4種方式
- bootspring第三方資源配置管理
- GIT同步修改后的遠程分支