ImportError while trying to get the OS and software versions
### System Info

OS: Ubuntu 22.04; Python version: Python 3.10.6

### Who can help?

_No response_

### Information

- [X] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

Simply run the command `python3 src/transformers/commands/transformers_cli.py env`.

### Expected behavior

I wanted to get the OS and software versions but instead got the error
```
Traceback (most recent call last):
  File "/home/skywalker/Downloads/transformers/transformers/src/transformers/commands/transformers_cli.py", line 18, in <module>
    from .add_new_model import AddNewModelCommand
ImportError: attempted relative import with no known parent package
```
The CLI is not supported this way, you should run `transformers-cli env`.<|||||>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/main/CONTRIBUTING.md) are likely to be ignored.