当前位置:网站首页>Anaconda related knowledge supplement (spyder+keras Library)
Anaconda related knowledge supplement (spyder+keras Library)
2022-06-11 08:12:00 【Xiongkairui】
Spyder+Keras library
Before, after Anaconda Repeated reinstallation of software , uninstall , I have a deeper understanding of this software and related libraries .
If not downloaded Anaconda or tensorflow
Take a look at this article :Anaconda+tensorflow The most effective summary version
Download it , You can see the following content directly
1、Anaconda You can create multiple virtual environments , In this virtual environment , We can download the libraries and software we need , such as Spyder Software , If you want to work in different versions python+tensorflow Operating under the environment of Spyder, Then we have to download it Spyder, Finally, we can get different environment Spyder.
As shown below :
In the picture above , There are two Spyder, One is in base Downloaded under the environment Spyder(Anaconda3), There is also an environment created by myself (python3.7) In the installation of Spyder(python37)
That is, if you want to run in your own environment Spyder, Then you have to activate your own environment first , First use Administrator status function Anaconda Prompt window .
activate python37
Then execute the following command .
pip install spyder
That's all right. ,( Premise is : Yours Anaconda Installation successful )
2、 When you download the virtual environment Spyder After software , You open it deliberately Spyder, Start using it . But when you run the relevant code , Some libraries may be missing , You have to install it yourself , Installing these libraries is simple , Similar to the above command , The virtual environment is activated first , Then execute the following command .
pip install + Missing database name
Let me give you an example
Keras As Tensorflow Encapsulated interfaces API, suffer Tensorflow The impact of version changes , So when you're Spyder The following error is reported in the result of running the code in the software :
ModuleNotFoundError: No module named 'keras'
Most likely not downloaded keras This library
If you run the following command directly :
pip install keras
It can be installed successfully , But there will still be errors when running .
This is most likely because tensorflow and keras Of Version mismatch .
Here's the picture , This is a tensorflow and keras Matching table for .


According to the corresponding situation above , Download reasonably keras Library will do .
Last , It can be used normally .
边栏推荐
- [the most complete ENSP [installation diagram] in history!]
- Socket [5] - struct linker usage
- Record a murder case caused by ignoring the @suppresslint ("newapi") prompt
- node报错整理
- Note: JDBC
- 134. gas station
- 【1】 Integrated learning: quickly understand Integrated Learning
- How to find the complementary sequence of digraph
- Alchemy experience (model training of deep learning) the necessity of timely adjusting training parameters for some situations (the adjustment of learning rate LR is the primary) summarizes some metho
- Using Tkinter to realize guessing numbers game
猜你喜欢

Solution to the occurrence interval (space) of latex manual numbering documents

空间几何

Development of sylixos SD device driver

SylixOS SD设备驱动开发

How to output the percent sign "%" in printf function in C language

2022.6.6 extra long growth simulation

Use of Excel to XML tool of TestLink

Process control: process waiting (recycling child processes)

Tidb cloud launched Google cloud marketplace, empowering global developers with a new stack of real-time HTAP databases

Image data enhancement (translation, rotation, brightness transformation, flipping, adding Gaussian noise, scaling, cropping)
随机推荐
Record a murder case caused by ignoring the @suppresslint ("newapi") prompt
Summary of embedded software interview questions
The role of lambdalr in pytorch
安卓初中级开发基础知识整理(面试自用)
Method summary of creating deep learning model with keras/tensorflow 2.9
Login and parameterization of interface test
Sign in system design: how to draw the sign in function
这几个小工具也太好用了
Bubble sorting with C language
Logical implication of functional dependence
Scrape captures 51job Recruitment Information (static page)
About static keyword
YUV数据的裁剪与重叠
Detailed explanation of character function and string function (including simulation implementation)
Printing diamond of beginner C
Servlet
Testing firebase with postman
Typescript keyboard mapping
Tidb Cloud est en ligne sur le marché Google Cloud pour permettre aux développeurs du monde entier d'utiliser une nouvelle pile de bases de données htap en temps réel
Selenium click the floating menu and realize the functions of right mouse button