Invalid version of dependency, need 'libdrm_intel' ['>=2.4.102'] found '2.4.101'
时间: 2023-08-08 10:13:29 浏览: 95
这个错误表示你需要一个版本为 `2.4.102` 或更高的 `libdrm_intel` 库,但是当前系统中安装的版本是 `2.4.101`,所以出现了版本不匹配的错误。
要解决这个问题,你有以下几个选择:
1. 更新 `libdrm_intel` 库。你可以尝试从源代码编译并安装新版本的 `libdrm_intel` 库,或者查看你的 Linux 发行版中是否有可用的更新版本。
2. 修改应用程序或库的依赖版本要求。如果你可以修改应用程序或库的源代码,可以尝试将依赖版本要求降低,以匹配当前系统中安装的库版本。
3. 使用容器化技术。你可以使用 Docker 等容器化技术,创建一个包含正确版本的库的容器,并在其中运行应用程序或库。
4. 回退到较旧的系统版本。如果你没有其他选择,可以考虑回退到一个安装了正确版本库的较旧的系统版本。
相关问题
RuntimeWarning: invalid value encountered in divide vertex_normals /= np.linalg.norm(vertex_normals, axis=1).reshape((-1, 1))
This warning occurs when there is a division by zero or when the result of a division is not a number (NaN). In this case, it is likely that the norm of some vertex normals is zero, causing a division by zero.
To fix this warning, you can check if the norm of each vertex normal is zero and set the corresponding values to a default value (e.g. [0,0,1] for a unit vector pointing in the z direction). Here is an example code snippet:
norms = np.linalg.norm(vertex_normals, axis=1)
zero_norms = np.where(norms == 0)[0]
default_normal = np.array([0,0,1])
if zero_norms.size > 0:
vertex_normals[zero_norms] = default_normal
norms[zero_norms] = 1
vertex_normals /= norms.reshape((-1, 1))
This code first computes the norms of the vertex normals, then checks if any of them are zero. If so, it sets the corresponding vertex normals to the default normal vector and sets their norms to 1 (to avoid division by zero). Finally, it divides all the vertex normals by their norms.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. tensorflow-intel 2.12.0 requires protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3, but you have protobuf 3.19.0 which is incompatible. tensorboard 2.12.3 requires protobuf>=3.19.6, but you have protobuf 3.19.0 which is incompatible.
case '/':
return calculator.divide(x, y);
default:
throw new ArithmeticException("Invalid operator");
}
}
public static void main(String[] args) {
launch(args);
}
}
```