USE_TORCH while import transformers forever true
Author: Talisberg
Pull request: no

## Environment info
<!-- You can run the command `transformers-cli env` and copy-and-paste its output below.
     Don't forget to fill out the missing fields in that output! -->

- `transformers` version: 4.8.0
- Platform: linux
- Python version: 3.6
- PyTorch version (GPU?):1.8.1(No)
- Tensorflow version (GPU?):2.0.1(No)
- Using GPU in script?:No
- Using distributed or parallel set-up in script?:No

### Who can help
@sgugger @Rocketknight1 
<!-- Your issue will be replied to more quickly if you can figure out the right person to tag with @
 If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
 Please tag fewer than 3 people.

Models:

- albert, bert, xlm: @LysandreJik
- blenderbot, bart, marian, pegasus, encoderdecoder,  t5: @patrickvonplaten, @patil-suraj
- longformer, reformer, transfoxl, xlnet: @patrickvonplaten
- fsmt: @stas00
- funnel: @sgugger
- gpt2: @patrickvonplaten, @LysandreJik
- rag: @patrickvonplaten, @lhoestq
- tensorflow: @Rocketknight1

Library:

- benchmarks: @patrickvonplaten
- deepspeed: @stas00
- ray/raytune: @richardliaw, @amogkam
- text generation: @patrickvonplaten
- tokenizers: @LysandreJik
- trainer: @sgugger
- pipelines: @LysandreJik

Documentation: @sgugger


 -->

## Information

Model I am using (Bert, XLNet ...):AutoTokenizer(Bert)

The problem arises when using:
* Importing transformers while Using TensorFlow backend
error arises : 
```transformers/file_utils.py``` 
```if _torch_available:
    280     torch_version = version.parse(importlib_metadata.version("torch"))
--> 281     _torch_fx_available = (torch_version.major, torch_version.minor) == (
    282         TORCH_FX_REQUIRED_VERSION.major,
    283         TORCH_FX_REQUIRED_VERSION.minor,

AttributeError: 'Version' object has no attribute 'major'
```


The tasks I am working on is:
* [ ] trying to use ```train_new_from_iterator``` on top of ```bert-base-cased``` 
* [ ] my own task or dataset: (give details below)

## To reproduce

Steps to reproduce the behavior:

1. https://github.com/huggingface/transformers/pull/9441
2. row 67, forever True (```USE_TORCH```) So cannot reach (```USE_TF```) , row 80

<!-- If you have code snippets, error messages, stack traces please provide them here as well.
     Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting
     Do not use screenshots, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.-->

## Expected behavior
allow transformers import, when using TF

<!-- A clear and concise description of what you would expect to happen. -->


Comments:
I am unsure of what the bug is and the reproducer you are suggesting. You are not supposed to change the source code of the library to activate `USE_TORCH`, you should set it as an environment variable.

Please close issue,
Something wrong with my env

בתאריך יום ב׳, 12 ביולי 2021 ב-17:33 מאת Sylvain Gugger <
***@***.***>:

> I am unsure of what the bug is and the reproducer you are suggesting. You
> are not supposed to change the source code of the library to activate
> USE_TORCH, you should set it as an environment variable.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/transformers/issues/12641#issuecomment-878330631>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AIMDXVAVVDRGGLYXT6BEBV3TXL4L5ANCNFSM5AGJ4YIQ>
> .
>