pythontensorflownlp

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


I am trying to install transformers using pip

pip install transformers

after import transformers

this error show

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.

although I install TensorFlow-GPU= 2.3.1 and using conda

system info

Windows 10 
python 3.6
cuda 10.1
tensorflow-gpu= 2.3.1

Solution

  • I found the problem after investigate for 10 hours

    I installed tensorflow by using conda install tensorflow-gpu

    and transformers by using pip after remove tensorflow-gpu and install it by using pip

    it works fine