当前位置:网站首页>Summary of errors reported when using YML file to migrate CONDA environment
Summary of errors reported when using YML file to migrate CONDA environment
2022-06-30 21:37:00 【A big cat who wants to lie flat every day】
use yml Document carried out conda Summary of errors reported during environment migration
Write at the top , This is a failure summary , In the end because Found conflicts! Looking for incompatible packages. Take too long , I gave up , Choose to install the package directly on the new server .
Use yml Document carried out conda Environmental migration
use first export Option to generate a environment.yml file , Between different platforms and operating systems Reproduce the project environment .environment.yml Files are not specific to a particular operating system , And use YAML Format .environment.yml Only the package name is listed , from conda Build the environment based on the name of the package . export It also includes the use of pip Installed packages .
step1: export environment.yml file :
conda env export > environment.yml
Be careful : If the current path already has environment.yml file ,conda Will rewrite this file
step 2: Recreate the environment
conda env create -f environment.yml
Report a mistake : AttributeError: ‘NoneType’ object has no attribute ‘keys’ conda env
Check your envinroment.yml file , This is basically because yml Empty or broken. Regenerate it yml try .
Error reporting II :CondaValueError: prefix already exists: /home/username/anaconda3
This is because yml Medium env name It's empty , Or with the present machine env Conflict .
For example, the following yml Medium env name by base, And each conda It's all down there base This environment , There is a conflict .
terms of settlement :
modify yml Medium name, Or add... To the command -n Parameters indicate env name
conda env create -f environment.yml -n envname
Error reporting 3 、Found conflicts! Looking for incompatible packages. failed

Found conflicts! Looking for incompatible packages. failed
conda It takes a long time Looking for incompatible packages It shows failed, Then again Looking for incompatible packages...
terms of settlement :conda update anaconda
Error reporting 4 、ResolvePackageNotFound
The solution is to delete the second equal sign and the following and configuration information in the error package
Reference resources https://blog.csdn.net/Hunter_Murphy/article/details/124783101
It takes a long time Looking for incompatible packages, Lose patience , The final decision is to pack directly .

边栏推荐
- How to move forward when facing confusion in scientific research? How to give full play to women's advantages in scientific research?
- [untitled]
- Use the log server to output the topn of various Apache logs
- SQL server extracts pure numbers from strings
- 1-10 respond to client content according to different URLs
- Double solid histogram / double y-axis
- Rethink healthy diet based on intestinal microbiome
- Ssh server configuration file parameter permitrootlogin introduction
- Zaah Sultan looks at the old driver
- Testing media cache
猜你喜欢

Apply for vector bus protocol color picture wallpaper hanging picture, very good!

布隆过滤器

clickhouse原生監控項,系統錶描述

开源实习经验分享:openEuler软件包加固测试

Open source internship experience sharing: openeuler software package reinforcement test

PyTorch量化实践(2)

Dm8: generate DM AWR Report

银行集体下架的智能投顾产品,为何成了“鸡肋”?

Deployment and use of Nacos

根据肠道微生物组重新思考健康饮食
随机推荐
攻防演练中的防泄露全家福
1-15 nodemon
1-17 express Middleware
Sqlserver gets the data of numbers, Chinese and characters in the string
[untitled]
Move blog to CSDN
1-18 create the most basic express server & API module for creating routes
How to run jenkins build, in multiple servers with ssh-key
Coefficient of variation method matlab code [easy to understand]
针对美国国家安全局“酸狐狸”漏洞攻击武器平台的分析与应对方案建议
clickhouse原生監控項,系統錶描述
升级kube出现unknown flag: --network-plugin
1-11 create online file service
Test medal 1234
Iclr'22 spotlight | how to measure the amount of information in neural network weights?
NCAT detailed introduction (Reprint)
Auto-created primary key used when not defining a primary key
ceshi deces
Double solid histogram / double y-axis
用yml文件进行conda迁移环境时的报错小结