当前位置:网站首页>In the anaconda Promat interface, import torch is passed, and the error is reported in the jupyter notebook (only provide ideas and understanding!)
In the anaconda Promat interface, import torch is passed, and the error is reported in the jupyter notebook (only provide ideas and understanding!)
2022-08-05 07:11:00 【like a few dollars】
This article is only for personal understanding, I hope for advice, it will be beneficial and better!
In order to complete a project one day, I started to install tensorflow. I found countless blogs on the Internet, thinking about downloading it quickly.
but! but! two thousand hours latter~
After trying to download tensorflow from countless bloggers, I typed import tensorflow in Jupyter Notebook and got an error!Not only can't import the tensorflow package, but import torch will report an error!I think it should be the result of my own random operations...
Two thousand hours latter~
Some ideas were born, hoping to solve some of the problems of our friends!
—————————————————————————————————————————————
Through n operations, I understand it like this:
1. Create a virtual environment (name as needed)
2. Jupyter Notebook should be installed in the virtual environment

The default base (root), click install to download jupyter, Launch indicates that it has been downloaded!
3. Pytorch can be installed in the base environment.
—————————————————————————————————————————————
My problem is finally solved: modify the kernel (kernel)
Click on Jupyter Notebook(anaconda3) to open 
Click New, you can see that I have randomly created several virtual environments of TF3, py36, pytorch, tensorflow, and finally I used root.
It seems that it is because I loaded the kernel in the base, my impression is this~

How to say, it is better to read and try more about configuring the environment. I believe that it will always succeed. Everyone is in a different situation. Maybe the first blog you found was successful, or maybe the 99th blog was successful.Harvest inspiration, but there is bound to be a harvest!
2022/8/3
边栏推荐
猜你喜欢
随机推荐
蓝牙gap协议
Shiny04---DT和进度条在shiny中的应用
17-VMware Horizon 2203 virtual desktop-Win10 manual desktop pool floating (seventeen)
一天学会从抓包到接口测试,通过智慧物业项目深度解析
技术分析模式(十一)如何交易头肩形态
(2022杭电多校六)1010-Planar graph(最小生成树)
性能提升400倍丨外汇掉期估值计算优化案例
Using printf function in STM32
It turns out that Maya Arnold can also render high-quality works!Awesome Tips
共享内存+inotify机制实现多进程低延迟数据共享
TCP的粘包拆包问题+解决方案
After working for 3 years, I recalled the comparison between the past and the present when I first started, and joked about my testing career
工作3年,回想刚入门和现在的今昔对比,笑谈一下自己的测试生涯
mysql使用in函数的一个小问题
概率与期望部分题解
(JLK105D)中山爆款LED恒流电源芯片方案
MySQL表操作练习
FPGA parsing B code----serial 4
访问被拒绝:“microsoft.web.ui.webcontrols”的解决办法
基于KECA-IGWO-KELM的间歇过程故障诊断方法









