环境安装问题(库、代码等问题)

文章目录

  • 前言
  • 一、解决: _configtest.c:2:10: fatal error: mpi.h: No such file or directory #include <mpi.h>
  • 二、VSCode报错:an ssh installation couldn‘t be found的解决方案
  • 三、args = parser.parse_args() SystemExit: 2 解决方案
  • 四、Could not load library libcudnn_cnn_train.so.8 问题及解决方案


前言

该文章会一直更新遇到环境安装问题,使用他/她人博客解决方法,并附解决方法博客链接。

一、解决: _configtest.c:2:10: fatal error: mpi.h: No such file or directory #include <mpi.h>

核心命令:

sudo apt install libopenmpi-dev
pip install mpi4py

查看链接:点击这里

解决时间:2023-12-13

二、VSCode报错:an ssh installation couldn‘t be found的解决方案

在PowerShell中执行如下命令:

 Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

查看链接:点击这里

解决时间:2023-12-14

三、args = parser.parse_args() SystemExit: 2 解决方案

解决方法:args = parser.parse_args()改成如下:

 args = parser.parse_args(args=[])

查看链接:点击这里

解决时间:2023-12-14

查看链接:点击这里

四、Could not load library libcudnn_cnn_train.so.8 问题及解决方案

原因:高版本torch版本自带cudnn文件导致
解决方法:更改低版本或调整环境
解决时间:2023-12-20
查看链接:点击这里

你可能感兴趣的:(python-pytorch,环境问题)