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 "<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,可能存在不兼容问题

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

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值