当前位置:网站首页>pycharm和anaconda的基础上解决Jupyter连接不上Kernel(内核)的问题--解决方案1
pycharm和anaconda的基础上解决Jupyter连接不上Kernel(内核)的问题--解决方案1
2022-06-11 16:21:00 【herongherong】
知识点:
一、Anaconda创建虚拟环境并使用Jupyter-notebook打开虚拟环境
1、完成anaconda软件安装
2、完成pycharm软件的安装
3、完成anaconda虚拟环境创建
清华镜像快速创建虚拟环境
4、激活虚拟环境
activate 环境名称
5、如果你的pycharm中的terminal运行前面是PS,那么你有可能会出现Jupyter连接不上Kernel(内核)问题
在setting中查找terminal,将shell path 换成cmd.exe即可
然后关掉,重新打开pycharm。




6、添加虚拟环境到jupyter notebook
(1)安装ipykernel:pip install ipykernel
(2)激活环境

(3)将环境写入Notebook的kernel中:
python -m ipykernel install --user --name 环境名称 --display-name "Python (环境名称)"


结果:C:\Users\herong\AppData\Roaming\jupyter\kernels\pytorch_test1该路径下的kernel.json文件显示正确了
(4)打开Jupyter notebook
###### (5)弹出的jupyter界面选择环境

注意:
1、你的浏览器的地址栏的kernel_name=pytorch_test1重要,它代表你开始进入那个环境。
http://localhost:8888/notebooks/jupyter_20220606/Untitled4.ipynb?kernel_name=pytorch_test1
2、jupter要多尝试连接,感觉有时候也不稳定,不知道是不是玄学?
'''这只是我的解决办法,对所有问题不一定能够很好的解决, 希望在一定程度上能帮到大家, 如果大家有找到更好的解决办法,可以评论,感谢大佬'''

边栏推荐
- DHCP protocol instantiation analysis
- The flat life of older farmers from Beijing to Holland
- Analysis of time complexity and space complexity
- This "invisible" robot may be your future colleague
- AutoRunner自动化测试工具如何创建项目-Alltesting|泽众云测试
- rf中安装的第四步:安装 robotframework-selenium2library报错
- 什么是rs邮票纸?
- R1 Quick Open Pressure Vessel Operation test Library and Simulation Test in 2022
- Heartless sword English Chinese bilingual poem 001 Spring outing
- 为什么芯片设计也需要「匠人精神」?
猜你喜欢

Detailed explanation of the functions of list and dict data types

Composition of JVM

Project workspace creation steps - Zezhong ar automated test tool

C语言各数据类型的内存映像

完整的测试流程【杭州多测师】【杭州多测师_王sir】

利用 MATLAB 和 DCRAW 处理数码相机 RAW 文件的完整流程

Nat Common | le Modèle linguistique peut apprendre des distributions moléculaires complexes

电脑下面的任务栏怎么显示打开的程序

2022年危险化学品经营单位主要负责人考试模拟100题及模拟考试

Collect | thoroughly understand the meaning and calculation of receptive field
随机推荐
1267_FreeRTOS启动第一个任务接口prvPortStartFirstTask实现分析
leetcode785. 判断二分图(中等)
项目工作区创建步骤-泽众AR自动化测试工具
Laravel listening mode
How the autorunner automated test tool creates a project -alltesting | Zezhong cloud test
[LeetCode每日一题] |686.重复叠加字符串匹配
2022年高处安装、维护、拆除考试模拟100题及在线模拟考试
Interview classic question: how to do the performance test? [Hangzhou multi surveyors] [Hangzhou multi surveyors \wang Sir]
What happened to the frequent disconnection of the computer at home
用户界面之工具栏详解-AutoRunner自动化测试工具
20 full knowledge maps of HD data analysis have been completed. It is strongly recommended to collect them!
(湖南科技大学oj作业)问题 G: 串的模式匹配
2022安全员-C证特种作业证考试题库及答案
PostgreSQL startup process
Nat Commun|語言模型可以學習複雜的分子分布
laravel 2020-01-01T00:00:00.000000Z 日期转化
Leetcode 1974. 使用特殊打字机键入单词的最少时间(可以,一次过)
laravel 监听模式
Web page design example assignment -- Introduction to Henan cuisine (4 pages) web final assignment design web page_ Dessert and gourmet college students' web design homework finished product
TC8:UDP_MessageFormat_01-02