我试着用pip安装变压器
pip install transformers进口变压器
此错误显示
Neither PyTorch nor TensorFlow >= 2.0 have been found.Models won't be available and only tokenizers, configuration, and file/data utilities can be used.虽然我安装了TensorFlow-GPU= 2.3.1并使用conda
系统信息
Windows 10
python 3.6
cuda 10.1
tensorflow-gpu= 2.3.1发布于 2020-10-14 10:23:20
经过10个小时的调查,我发现了这个问题。
我使用conda install tensorflow-gpu安装了tensorflow
移除tensorflow-gpu并使用pip安装变压器
它工作得很好
https://stackoverflow.com/questions/64337550
复制相似问题