Module version identification problem
Author: gaowanliang
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.1
- Platform: Windows 10 x64
- Python version: 3.7.3
- PyTorch version (GPU?): 1.7.1
- Tensorflow version (GPU?): 2.0.0
- Using GPU in script?: GTX1060
##  Module version identification problem caused by "importlib_metadata"
![image](https://user-images.githubusercontent.com/41822468/123531202-1d50b880-d735-11eb-9d15-7223c587148e.png)


Comments:
Hello! What command did you run to get the first error?

I just executed `python xxx.py` from the command, which references this package, and the specific project is [this](https://github.com/yangjianxin1/GPT2-chitchat)

![image](https://user-images.githubusercontent.com/41822468/123634048-88d97980-d84c-11eb-97ab-c5f8b40f58ef.png)

Detailed local error message (which contains some of my debugging data)


```python
Traceback (most recent call last):
  File "interact.py", line 1, in <module>
    import transformers
  File "C:\Users\gaowanliang\Miniconda3\lib\site-packages\transformers\__init__.py", line 43, in <module>
    from . import dependency_versions_check
  File "C:\Users\gaowanliang\Miniconda3\lib\site-packages\transformers\dependency_versions_check.py", line 41, in <module>
    require_version_core(deps[pkg])
  File "C:\Users\gaowanliang\Miniconda3\lib\site-packages\transformers\utils\versions.py", line 125, in require_version_core
    return require_version(requirement, hint)
  File "C:\Users\gaowanliang\Miniconda3\lib\site-packages\transformers\utils\versions.py", line 119, in require_version
    _compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
  File "C:\Users\gaowanliang\Miniconda3\lib\site-packages\transformers\utils\versions.py", line 50, in _compare_versions
    f"{requirement} is required for a normal functioning of this module, but found {pkg}=={got_ver}.{hint}"
ImportError: tqdm>=4.27 is required for a normal functioning of this module, but found tqdm==4.26.0.
Try: pip install transformers -U or pip install -e '.[dev]' if you're working with git master
```


This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.

I have a similar issue after upgrading to transformers 4.9.1:

```
>>> import transformers
>>> transformers.__version__
'4.9.1'
>>> from transformers.utils.versions import require_version
>>> require_version("torch>=1.5.0")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/reimers/miniconda3/envs/sbert/lib/python3.7/site-packages/transformers/utils/versions.py", line 114, in require_version
    _compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
  File "/home/reimers/miniconda3/envs/sbert/lib/python3.7/site-packages/transformers/utils/versions.py", line 50, in _compare_versions
    f"{requirement} is required for a normal functioning of this module, but found {pkg}=={got_ver}.{hint}"
ImportError: torch>=1.5.0 is required for a normal functioning of this module, but found torch==1.2.0.
>>> import torch
>>> torch.__version__
'1.7.1'
```


On an Ubuntu 20.04 system with Python 3.7.6 using miniconda.

Not sure why the wrong torch version is detected. 

The issue happens when I want to train something with the AdamW optimizer:
 File "/home/reimers/miniconda3/envs/sbert/lib/python3.7/site-packages/transformers/optimization.py", line 300

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.