安装hugging face新的transformers包,
pip install transformers后一切正常
但是jupyter notebook里import transformers就报错
sacremosesPackageNotFoundError: No package metadata was found for The ‘sacremoses’ distribution was not found and is required by this application.
查看site-packages也有transformers
pycharm里也能正常import
后来发现重启jupyter notebook就能用了