Error: Can not import paddle core while this file exists: /opt/conda/envs/python35-paddle120-env/lib/python3.9/site-packages/paddle/fluid/libpaddle.so
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/tmp/ipykernel_3137/2562052869.py in <cell line: 2>()
1 # 测试ChatGLM-6B的Paddle版本是否工作
----> 2 from paddlenlp import Taskflow
3 chatbot = Taskflow("text2text_generation",batch_size=2)
4 results = chatbot(['您好!','很高兴认识你'])
5 print(results)
/opt/conda/envs/python35-paddle120-env/lib/python3.9/site-packages/paddlenlp/__init__.py in <module>
31 "Please import paddlenlp before datasets module to avoid download issues"
32 )
---> 33 import paddle
34
35 from . import (
/opt/conda/envs/python35-paddle120-env/lib/python3.9/site-packages/paddle/__init__.py in <module>
29 # We need remove the duplicated code here once we fix
30 # the illogical implement in the monkey-patch methods later.
---> 31 from .framework import monkey_patch_variable
32 from .framework import monkey_patch_math_tensor
33
/opt/conda/envs/python35-paddle120-env/lib/python3.9/site-packages/paddle/framework/__init__.py in <module>
15 # TODO: import framework api under this directory
16
---> 17 from . import random # noqa: F401
18 from .random import seed # noqa: F401
19 from .framework import get_default_dtype # noqa: F401
/opt/conda/envs/python35-paddle120-env/lib/python3.9/site-packages/paddle/framework/random.py in <module>
15 # TODO: define random api
16 import paddle
---> 17 from paddle import fluid
18 from paddle.fluid import core
19
/opt/conda/envs/python35-paddle120-env/lib/python3.9/site-packages/paddle/fluid/__init__.py in <module>
34
35 # import all class inside framework into fluid module
---> 36 from . import framework
37 from .framework import *
38
/opt/conda/envs/python35-paddle120-env/lib/python3.9/site-packages/paddle/fluid/framework.py in <module>
33 from .proto import framework_pb2, data_feed_pb2
34
---> 35 from . import core
36 from . import unique_name
37 import paddle.version as fluid_version
/opt/conda/envs/python35-paddle120-env/lib/python3.9/site-packages/paddle/fluid/core.py in <module>
354 "you should reinstall paddlepaddle with no-avx core.\n"
355 )
--> 356 raise e
357
358
/opt/conda/envs/python35-paddle120-env/lib/python3.9/site-packages/paddle/fluid/core.py in <module>
267
268 try:
--> 269 from . import libpaddle
270
271 if avx_supported() and not libpaddle.is_compiled_with_avx():
ImportError: libcudart.so.11.0: cannot open shared object file: No such file or directory
安装文档中所说的所有包并重启内核后运行以下代码块报错:
错误信息: