当前位置:网站首页>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要多尝试连接,感觉有时候也不稳定,不知道是不是玄学?
'''这只是我的解决办法,对所有问题不一定能够很好的解决, 希望在一定程度上能帮到大家, 如果大家有找到更好的解决办法,可以评论,感谢大佬'''

边栏推荐
- 基于ssm框架实现的企业进销存管理系统【源码+数据库+毕设】
- [sword finger offer] 22 The penultimate node in the linked list
- Laravel8 implementation of sign in function
- laravel 8 使用passport 进行Auth验证及颁发token
- PostgreSQL create database
- R1 Quick Open Pressure Vessel Operation test Library and Simulation Test in 2022
- Detailed explanation of MySQL binlog log and master-slave replication
- DHCP protocol instantiation analysis
- Composition of JVM
- 从0到1了解Prometheus
猜你喜欢

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

jdbc调试错误,求指导

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

(湖南科技大学oj作业)问题 G: 串的模式匹配

What if you can't access the desktop after the computer is turned on

Kill the swagger UI. This artifact is better and more efficient!

面试高频算法题---最长回文子串

Simulated 100 questions and simulated examination for main principals of hazardous chemical business units in 2022

Pytest test framework Basics

20 full knowledge maps of HD data analysis have been completed. It is strongly recommended to collect them!
随机推荐
2022年危险化学品经营单位主要负责人考试模拟100题及模拟考试
2022年安全员-B证国家题库及模拟考试
[从零开始学习FPGA编程-17]:快速入门篇 - 操作步骤2-5- VerilogHDL硬件描述语言符号系统与程序框架(软件程序员和硬件工程师都能看懂)
回归预测 | MATLAB实现RBF径向基神经网络多输入单输出
If you want to learn ArrayList well, it is enough to read this article
The flat life of older farmers from Beijing to Holland
laravel 监听模式
[ISITDTU 2019]EasyPHP
What if you can't access the desktop after the computer is turned on
利用 MATLAB 和 DCRAW 处理数码相机 RAW 文件的完整流程
Leetcode 1974. 使用特殊打字机键入单词的最少时间(可以,一次过)
书籍《阅读的方法》读后感
485天,我远程办公的 21 条心得分享|社区征文
Class and__ proto__ Property, the class prototype chain has two inheritance routes
leetcode-141.环形链表
laravel 8 通过 任务调度 实现 数据库备份
Operation guide | how to select a collector on moonbeam and Moonriver
Data enhancement
C语言各数据类型的内存映像
How the autorunner automated test tool creates a project -alltesting | Zezhong cloud test