当前位置:网站首页>From Anaconda to tensorflow to jupyter, step on the pit and fill it all the way
From Anaconda to tensorflow to jupyter, step on the pit and fill it all the way
2022-07-25 13:56:00 【Fox's hat】
1. install anaconda Possible pit
Download address :https://repo.continuum.io/archive/index.html
I installed Anaconda3-5.2.0, To match python3.6. But then I found out that after the new virtual environment , You can customize what you need for installation python edition , therefore anaconda Version can be installed at will .
You need to add it to the environment variable during installation , I skip 了 vscode Installation , As a result, it won't open navigator, Has been installing Go around there , Don't complain .
Solution 1: Open as administrator . Find or turn around .
Solution 2:anaconda prompt Open as Administrator
conda --version
anaconda navigator
An error is as follows :
The error reported here is because we can't find vscode The version of , Need to find anaconda_api.py,edit with pycharm And so on. , You cannot double-click , Double click directly and make changes without saving . Need to be in anaconda_api.py Middle handlebar Cong 811 The line vscode Related codes to return The previous part is commented out , That's all right. .vscode After the problem is solved ,anaconda Finally, it can be opened .
2. Installing a virtual environment
Why virtual environment ? I use... Directly anaconda default root Is it not fragrant ?
I was lazy before and didn't install a new virtual environment , Directly in root Lower installation TensorFlow, Many dependent packages are found to be degraded or upgraded , The more secure, the more disorderly . This Zhihu answers the Lord to solve my confusion , The simplest example assumes that the framework needs to be installed A package , install A The prerequisite of the package is B Bag 2.1 Version and C Bag 1.2 All versions have , At this time, in your original system B The bag could be 3.2 edition , In order to pretend A The package needs to be downgraded , But the original in the system D The bag needs 3.2 Version of B package , therefore B The package has been downgraded , May lead to D The bag cannot be used . So we must have a new virtual environment , Dedicated to deep learning .
( original text :https://zhuanlan.zhihu.com/p/136268744)
stay anaconda prompt Open as administrator in ,
conda create --name energy-ai python=3.6
The speed of discovery is extremely slow , The error is also reported as follows :
It seems that the remote server has timed out transmitting information , So an extended time limit is added ,
conda config --set remote_read_timeout_secs 1000.0

This is a new mistake , Server connection problems abroad , So replace the image source :
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
conda create --name energy-ai python=3.6
this time sousou Of , It was installed soon .
activate energy-ai
3. install TensorFlow
The previous installation with the command line was very unsuccessful , This time I'm directly in navigator Of environment I found it directly TensorFlow, Click directly .
4.jupyter Installation and normal use
jupyter Is installed directly on the energy-ai One click installation under the interface . But there are problems in using , Has been submitted to the kernel error, Click runtime , Will jump to the next cell, But no error or result .
The analysis reason : Then used Anaconda Install multiple versions of python When , Or because of multiple uninstallations anaconda when , Lead to python Of kernel The kernel installation path is chaotic , bring Jupyter notebook Unavailable . I uninstall many times anaconda As a result of .
One 、 Start by opening Anaconda Prompt
Two 、 Input jupyter kernelspec list Check the installed kernel and location
Let's say mine is C:\Users\bonni\AppData\Roaming\jupyter\kernels\python3
3、 ... and 、 Enter the location where the kernel is installed , open kernel.jason, see python Whether the path file of the editor is the same as the installation path , If it is different, you can modify it ( Change it to python.exe In the directory )
All changed to something like this C:\Users\bonni\Anaconda3\envs\energy-ai\python.exe
, It's your anaconda Of the current virtual environment under the installation path python.exe Location path .
Link to the original text :https://blog.csdn.net/wewearef/article/details/118761042
边栏推荐
- Data analysis business core
- Okaleido上线聚变Mining模式,OKA通证当下产出的唯一方式
- 【力扣】645.错误的集合
- Business visualization - make your flowchart'run'(3. Branch selection & cross language distributed operation node)
- 刷题-洛谷-P1161 开灯
- Brush questions - luogu-p1089 Jinjin savings plan
- What is your revenue rank among global developers in 2022?
- Concurrent tool set for concurrent programming
- 命名空间与库
- Tm1637 four digit LED display module Arduino driver with second dot
猜你喜欢

Setting of parameter configuration tool for wireless vibrating wire collector

IM system - some common problems of message streaming

在线问题反馈模块实战(十三):实现多参数分页查询列表
![[platform IO compile hifive1 revb] * * * [.pio\build\hifive1 revb\src\setupgpio.o] solution to error 1](/img/a1/de197464e2a735d7ef012cea780da5.png)
[platform IO compile hifive1 revb] * * * [.pio\build\hifive1 revb\src\setupgpio.o] solution to error 1

百度搜索打击盗版网文站点,SEOer应该关注哪些问题?

Esp32 connects to Alibaba cloud mqtt IOT platform

职场「数字人」不吃不睡007工作制,你「卷」得过它们吗?

OKA通证权益解析,参与Okaleido生态建设的不二之选

Common problems of wireless relay acquisition instrument

MXNet对DenseNet(稠密连接网络)的实现
随机推荐
Tm1637 four digit LED display module Arduino driver with second dot
einsum(): operands do not broadcast with remapped shapes [original->remapped]: [1, 144, 20, 17]->[1,
刷题-洛谷-P1150 Peter的烟
[server data recovery] HP EVA server storage raid information power loss data recovery
Tensorflow2 installation quick pit avoidance summary
Four methods of importing CSV text files into Excel
JS array indexof includes sort() colon sort quick sort de duplication and random sample random
[force buckle] 645. Wrong set
2022年下半年软考初级程序员备考
依迅总经理孙峰:公司已完成股改,准备IPO
Business analysis report and data visualization report of CDA level1 knowledge point summary
Practice of online problem feedback module (13): realize multi parameter paging query list
GCD details
Canal realizes MySQL data synchronization
移动端网站,独立APP,网站排名策略有哪些?
Azure Devops (XIV) use azure's private nuget warehouse
[platform IO compile hifive1 revb] * * * [.pio\build\hifive1 revb\src\setupgpio.o] solution to error 1
手里有点钱可以投资哪些理财产品?
【目录爆破工具】信息收集阶段:robots.txt、御剑、dirsearch、Dirb、Gobuster
Emergency science | put away this summer safety guide and let children spend the summer vacation safely!