(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 "<stdin>", line 1, in <module>
File "/home/luke/miniconda3/lib/python3.9/site-packages/paddle/__init__.py", line 25, in <module>
from .fluid import monkey_patch_variable
File "/home/luke/miniconda3/lib/python3.9/site-packages/paddle/fluid/__init__.py", line 36, in <module>
from . import framework
File "/home/luke/miniconda3/lib/python3.9/site-packages/paddle/fluid/framework.py", line 37, in <module>
from . import core
File "/home/luke/miniconda3/lib/python3.9/site-packages/paddle/fluid/core.py", line 294, in <module>
raise e
File "/home/luke/miniconda3/lib/python3.9/site-packages/paddle/fluid/core.py", line 256, in <module>
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,可能存在不兼容问题
而Ubuntu22.04的gcc版本已升级到9.4,尝试之后再来记录
|