I'm trying to install transformers with pip install transformers
inside an Anaconda environment running TensorFlow 2.1.0 and I get the following error:
WARNING: No metadata found in c:\users\gamer\anaconda3\envs\tensorflow\lib\site-packages
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'c:\\users\\gamer\\anaconda3\\envs\\tensorflow\\lib\\site-packages\\chardet-3.0.4.dist-info\\METADATA'
There is a metadata.json
file in that directory.
It also fails with the same error when installing other packages such as pip install tf-nightly
.
I have tried enabling long paths as suggested in Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory \METADATA.
How do I solve this?
Ps.: installing transformers
from anaconda transformers doesn't work for me, because it's using an old version (I mean, the installation works, but the version doesn't have what I need).