PaddlePaddle 尚不支持 Ubuntu22.04

(base) luke@luke-NH5x-7xRCx-RDx:~$ python
Python 3.9.7 (default, Sep 16 2021, 13:09:58) 
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
Error: Can not import avx core while this file exists: /home/luke/miniconda3/lib/python3.9/site-packages/paddle/fluid/core_avx.so
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/luke/miniconda3/lib/python3.9/site-packages/paddle/__init__.py", line 25, in 
    from .fluid import monkey_patch_variable
  File "/home/luke/miniconda3/lib/python3.9/site-packages/paddle/fluid/__init__.py", line 36, in 
    from . import framework
  File "/home/luke/miniconda3/lib/python3.9/site-packages/paddle/fluid/framework.py", line 37, in 
    from . import core
  File "/home/luke/miniconda3/lib/python3.9/site-packages/paddle/fluid/core.py", line 294, in 
    raise e
  File "/home/luke/miniconda3/lib/python3.9/site-packages/paddle/fluid/core.py", line 256, in 
    from .core_avx import *
ImportError: /home/luke/miniconda3/lib/python3.9/site-packages/paddle/fluid/core_avx.so: undefined symbol: _dl_sym, version GLIBC_PRIVATE
>>> 

迄今为止(2022年4月25日),PaddlePaddle(GPU版本)尚不支持Ubuntu22.04,如果用

pip install paddlepaddle-gpu

或者

conda install -c paddle paddlepaddle-gpu

安装均会报上面错误

paddlepaddle目前最新Release版本是2.2.2

根据 https://github.com/PaddlePaddle/Paddle/issues/40215https://github.com/PaddlePaddle/Paddle/issues/40215PaddlePaddle最高支持gcc8,而Ubuntu22.04的gcc版本是11.2.0,可能存在不兼容问题

而Ubuntu20.04,gcc版本为 9.4.0, 已验证可以正常安装paddlepaddle-gpu

你可能感兴趣的:(python,计算机视觉,计算机视觉,人工智能,深度学习)