新人求助,linux安装paddle失败,验证paddle时报错FatalError: `Segmentation fault` is detected by the operating system.
我在服务器上新建了环境,按网上教程在环境里conda install cuda10.2和cudnn7.6.5,之后按照官网指令安装对应的paddle,在验证的时候报错:
Running verify PaddlePaddle program ...
W1124 10:46:27.777153 23249 gpu_resources.cc:61] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 11.1, Runtime API Version: 10.2
W1124 10:46:27.783165 23249 gpu_resources.cc:91] device: 0, cuDNN Version: 7.6.
W1124 10:46:27.886606 23249 dynamic_loader.cc:305] The third-party dynamic library (libcuda.so) that Paddle depends on is not configured correctly. (error code is libcuda.so: cannot open shared object file: No such file or directory)
Suggestions:
1. Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed.
2. Configure third-party dynamic library environment variables as follows:
- Linux: set LD_LIBRARY_PATH by `export LD_LIBRARY_PATH=...`
- Windows: set PATH by `set PATH=XXX;
--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
No stack trace in paddle, may be caused by external reasons.
----------------------
Error Message Summary:
----------------------
FatalError: `Segmentation fault` is detected by the operating system.
[TimeInfo: *** Aborted at 1669257987 (unix time) try "date -d @1669257987" if you are using GNU date ***]
[SignalInfo: *** SIGSEGV (@0x0) received by PID 23249 (TID 0x7efe6f452740) from PID 0 ***]
段错误 (核心已转储)
我搜了下问题在在命令行输入:
export LD_LIBRARY_PATH=/root/.local/conda/envs/你自己虚拟环境的名称/lib:$PATH
来添加系统变量,但是验证时还是报错,请问是什么原因,我现在需要怎么解决呢?谢谢大佬
这个变量看起设置的不对,在命令行,使用这条命令看看LD_LIBRARY_PATH变量的值:
echo $LD_LIBRARY_PATH
个人认为类似/root/.local这样的路径不太对,一般不会放到隐藏目录里。
可以使用which python3 命令来看看自己的python路径。
感谢您的建议,现在我装成功了o(* ̄▽ ̄*)ブ
我windows安装也遇到了这样的问题,可以交流下吗
请问最终是怎么解决的呢,我也遇到了这个问题