我的edit.py一直运行不起来,不晓得是出现了什么 问题,明明导入了滴
TheSeasonForHer opened this issue · comments
Traceback (most recent call last):
File "D:/Python-study/edit.py", line 16, in
from generation import getPredictText
File "D:\Python-study\generation.py", line 2, in
import paddlenlp
File "D:\Python-study\venv\lib\site-packages\paddlenlp_init_.py", line 20, in
from . import ops
File "D:\Python-study\venv\lib\site-packages\paddlenlp\ops_init_.py", line 15, in
from .faster_transformer.transformer.decoding import *
File "D:\Python-study\venv\lib\site-packages\paddlenlp\ops\faster_transformer\transformer\decoding.py", line 25, in
from paddlenlp.ops.ext_utils import load
File "D:\Python-study\venv\lib\site-packages\paddlenlp\ops\ext_utils.py", line 25, in
from paddle.utils.cpp_extension import load_op_meta_info_and_register_op
ModuleNotFoundError: No module named 'paddle.utils.cpp_extension'