当前位置:网站首页>Deoldify project problem - omp:error 15:initializing libiomp5md dll,but found libiomp5md. dll already initialized.
Deoldify project problem - omp:error 15:initializing libiomp5md dll,but found libiomp5md. dll already initialized.
2022-07-06 11:07:00 【zkkkkkkkkkkkkk】
Catalog
One 、 Error message
The complete error report is as follows :
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
Two 、 reason
New virtual environment , Then run the program and report an error . There are two reasons to search online in the virtual environment libiomp5md.dll file . One is in pytorch In the bag , The other is in the directory where the virtual environment is located . It's strange that these two files .
3、 ... and 、 resolvent
Check the relevant articles and blogs online , Two methods are summarized .
1) The code to solve
I'm reporting a mistake Python Use in script os modular , Add environment variables . The code is as follows :
import os
os.environ['KMP_DUPLICATE_LIB_OK'] = "TRUE"
2) Manual solution
Will already exist two libiomp5md.dll Delete one ( The first method is recommended , Because no one knows whether deleting will affect other packages , Which leads to other errors )
边栏推荐
- Are you monitored by the company for sending resumes and logging in to job search websites? Deeply convinced that the product of "behavior awareness system ba" has not been retrieved on the official w
- JDBC原理
- LeetCode #461 汉明距离
- NPM an error NPM err code enoent NPM err syscall open
- 报错解决 —— io.UnsupportedOperation: can‘t do nonzero end-relative seeks
- API learning of OpenGL (2003) gl_ TEXTURE_ WRAP_ S GL_ TEXTURE_ WRAP_ T
- Install MySQL for Ubuntu 20.04
- Did you forget to register or load this tag 报错解决方法
- Leetcode 461 Hamming distance
- La table d'exportation Navicat génère un fichier PDM
猜你喜欢
Why is MySQL still slow to query when indexing is used?
Mysql21 - gestion des utilisateurs et des droits
CSDN问答标签技能树(五) —— 云原生技能树
CSDN blog summary (I) -- a simple first edition implementation
【博主推荐】SSM框架的后台管理系统(附源码)
[Thesis Writing] how to write function description of jsp online examination system
CSDN问答模块标题推荐任务(二) —— 效果优化
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
35 is not a stumbling block in the career of programmers
Swagger、Yapi接口管理服务_SE
随机推荐
SSM integrated notes easy to understand version
MySQL other hosts cannot connect to the local database
Navicat 导出表生成PDM文件
Use dapr to shorten software development cycle and improve production efficiency
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
Win10: how to modify the priority of dual network cards?
[Li Kou 387] the first unique character in the string
[free setup] asp Net online course selection system design and Implementation (source code +lunwen)
Record a problem of raspberry pie DNS resolution failure
Invalid global search in idea/pychar, etc. (win10)
Did you forget to register or load this tag 报错解决方法
CSDN question and answer tag skill tree (I) -- Construction of basic framework
机器学习--人口普查数据分析
Install MySQL for Ubuntu 20.04
CSDN question and answer tag skill tree (II) -- effect optimization
@controller,@service,@repository,@component区别
MySQL completely uninstalled (windows, MAC, Linux)
Redis的基础使用
Ansible practical Series III_ Task common commands
Ansible实战系列一 _ 入门