当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
MySQL表操作练习
【网友真实投稿】为女友放弃国企舒适圈,转行软件测试12k*13薪
软件测试必问面试题(附答案和解析)
Mysql主从延迟的原因和解决方案
Tencent Business Security Post IDP Talk Summary
FPGA parsing B code----serial 4
算法拾遗十五补链表相关面试题
香港国际珠宝展及香港国际钻石、宝石及珍珠展揭幕
合工大苍穹战队视觉组培训Day9——相机标定
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
技术分析模式(十)头肩图案
RK3568环境安装
Flink学习10:使用idea编写WordCount,并打包运行
The NDK compiler so libraries
Shiny04---Application of DT and progress bar in shiny
After the firewall iptable rule is enabled, the system network becomes slow
C# FileSystemWatcher
MySQL:连接查询 | 内连接,外连接
Technical Analysis Patterns (11) How to Trade Head and Shoulders Patterns
Shiny04---DT和进度条在shiny中的应用









