当前位置:网站首页>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 .
边栏推荐
- TypeScript-接口和类型别名异同
- Detailed explanation of shift operator and bit operator in C language
- Crawl Baidu Baipin dynamic page
- Bubble sorting with C language
- Pycrypto packaging error
- (taking pytorch as an example) a simple understanding of the regularization method of path (depth) -drop path
- TypeScript-类型别名
- Request request object and response response object
- 2022.6.7 special student simulation
- Figure seamless database integration tushare interface
猜你喜欢

使用 COCO 数据集训练 YOLOv4-CSP 模型

Record a murder case caused by ignoring the @suppresslint ("newapi") prompt

C language - growth diary-04- preliminary exploration of local variables (local variables)

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

学习《缠解论语》

Training yolov4 CSP model using coco dataset

Summary of embedded software interview questions

Node error report sorting

Xshell7 and xftp7 to continue using this program, you must apply the latest updates or use a new version

【 史上最全的ENSP【安装图解】!】
随机推荐
使用POSTMAN 测试firebase
Login and parameterization of interface test
Solve valueerror: no model found in config file
Typescript class and interface, class and generic, interface merging
Testing firebase with postman
TypeScript-可辨识联合
Image data enhancement (translation, rotation, brightness transformation, flipping, adding Gaussian noise, scaling, cropping)
TiDB Cloud 上線 Google Cloud Marketplace,以全新一棧式實時 HTAP 數據庫賦能全球開發者
(transformation) tree, binary tree and forest transformation principle
Solution to the occurrence interval (space) of latex manual numbering documents
Collation of open source modulation identification data set
Dameng database startup and shutdown
【 史上最全的ENSP【安装图解】!】
Summary of force deduction questions
How to start participating in the open source community
Data visualization and Matplotlib
Storage of floating point in memory
[transfer] two-way merging and sorting of C language
避免list的并发修改异常的几种方式
TypeScript-键盘映射