Windows环境下加载ernie模型报错 WindowsPath object has no attribute ‘tell‘

曹沛
2023-12-01

Windows环境下加载ernie模型报错 WindowsPath object has no attribute ‘tell’


解决方法:
1.更换ERNIE套件安装方式

git clone https://github.com/PaddlePaddle/ERNIE.git --depth 1
cd ERNIE
pip install -r requirements.txt
pip install -e .

2.检查是否有漏装Wheel或其他包

import common, dual, tight, data, prox

3.Paddle的版本是否更新到2.0+

ModuleNotFoundError: No module named ‘paddle‘

解决方法:

pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
 类似资料: