赞
踩
这是一个很典型的python包重复,冲突造成的错误。本案例表现为:在conda和pytorch下都存在libiomp5md.dll,因而出现二意性无法继续,本篇如实记录解决过程。
在处理torch程序中,有如下包含:
- import torch
- from torch import nn
- from d2l import torch as d2l
- import torchvision
- from torch.utils import data
- from torchvision import transforms
调用该程序,无语法错误,但后面出现:
- 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,
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。