Error building docs locally:  No matching distribution found for ray[tune]; extra == "docs"
### System Info

```shell
- `transformers` version: 4.17.0
- Platform: macOS-10.16-x86_64-i386-64bit
- Python version: 3.10.0
- PyTorch version (GPU?): 1.11.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: no
- Using distributed or parallel set-up in script?: no
```


### Who can help?

@sgugger @stevhl

### Information

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

### Tasks

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

### Reproduction

On my system, when I try to install the packages necessary to build documentation using `pip install -e "[.docs]"`, I get the following error:

```
ERROR: Could not find a version that satisfies the requirement ray[tune]; extra == "docs" (from transformers[docs]) (from versions: none)
ERROR: No matching distribution found for ray[tune]; extra == "docs"
```

I'm trying to build the documentation locally as I'm a contributor to the [Dash user contributed datasets](https://github.com/Kapeli/Dash-User-Contributions#contribute-a-new-docset).

I'm developing on an Apple silicon Mac, but the conda environment is setup as a `x86_64` environment.


### Expected behavior

Documentation can be built and viewed locally.


Not sure why you're opening an issue here as it seems you'd like `ray` to have a package installable on your end :-).

I can't guarantee the doc will build without all integrations, but it might work to build the doc without Ray installed.<|||||>I'm going to close the issue now, since I've found that using `python=3.7` fixed the issue with install `ray`. However, I seem to be running into more problems now. Firstly, it looks like the module `black` is not listed as a dependency, I got an error that `doc_builder` requires `black` to work. However, even after installing `black`, I'm running into a new error:

```
fish: 'doc-builder build transformers…' terminated by signal SIGILL (Illegal instruction)
```

I'm not sure what's causing this error -- I might open a new issue if I find that its something related to this repo rather than my setup.

EDIT: The issue seems to be more general. After installing the dependencies and `doc-builder`, even trying to import the `transformers` package exits with the SIGILL error.