BUG: pandas doesn't install on python 3.10
### 

- [X] I have checked that this issue has not already been reported.

- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.

- [ ] I have confirmed this bug exists on the master branch of pandas.


### Reproducible Example

```python
pip install pandas (installs 1.3.3)
```


### Issue Description

I tried to install on  3.10.0rc2 
```
ultiarray\scalartypes.obj
    scalartypes.c
    numpy\core\include\numpy/npy_3kcompat.h(227): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\common.h(239): warning C4244: 'return': conversion from 'npy_uintp' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(425): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(426): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(1899): warning C4244: 'function': conversion from 'npy_double' to 'npy_float', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(1902): warning C4244: 'function': conversion from 'npy_double' to 'npy_float', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2577): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2561): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2577): warning C4244: '=': conversion from 'Py_ssize_t' to 'int', possible loss of data
    numpy\core\src\multiarray\scalartypes.c.src(2967): error C2440: 'function': cannot convert from 'double' to 'PyObject *'
    numpy\core\src\multiarray\scalartypes.c.src(2967): warning C4024: '_Py_HashDouble': different types for formal and actual parameter 1
    numpy\core\src\multiarray\scalartypes.c.src(2967): error C2198: '_Py_HashDouble': too few arguments for call
    numpy\core\src\multiarray\scalartypes.c.src(2976): error C2440: 'function': cannot convert from 'double' to 'PyObject *'
    numpy\core\src\multiarray\scalartypes.c.src(2976): warning C4024: '_Py_HashDouble': different types for formal and actual parameter 1
    numpy\core\src\multiarray\scalartypes.c.src(2975): error C2198: '_Py_HashDouble': too few arguments for call
    numpy\core\src\multiarray\scalartypes.c.src(2982): error C2440: 'function': cannot convert from 'double' to 'PyObject *'
    numpy\core\src\multiarray\scalartypes.c.src(2982): warning C4024: '_Py_HashDouble': different types for formal and actual parameter 1
    numpy\core\src\multiarray\scalartypes.c.src(2981): error C2198: '_Py_HashDouble': too few arguments for call
    numpy\core\src\multiarray\scalartypes.c.src(2967): error C2440: 'function': cannot convert from 'npy_longdouble' to 'PyObject *'
    numpy\core\src\multiarray\scalartypes.c.src(2967): warning C4024: '_Py_HashDouble': different types for formal and actual parameter 1
    numpy\core\src\multiarray\scalartypes.c.src(2967): error C2198: '_Py_HashDouble': too few arguments for call
    numpy\core\src\multiarray\scalartypes.c.src(2976): error C2440: 'function': cannot convert from 'npy_longdouble' to 'PyObject *'
    numpy\core\src\multiarray\scalartypes.c.src(2976): warning C4024: '_Py_HashDouble': different types for formal and actual parameter 1
    numpy\core\src\multiarray\scalartypes.c.src(2975): error C2198: '_Py_HashDouble': too few arguments for call
    numpy\core\src\multiarray\scalartypes.c.src(2982): error C2440: 'function': cannot convert from 'npy_longdouble' to 'PyObject *'
    numpy\core\src\multiarray\scalartypes.c.src(2982): warning C4024: '_Py_HashDouble': different types for formal and actual parameter 1
    numpy\core\src\multiarray\scalartypes.c.src(2981): error C2198: '_Py_HashDouble': too few arguments for call
    numpy\core\src\multiarray\scalartypes.c.src(2997): error C2440: 'function': cannot convert from 'double' to 'PyObject *'
    numpy\core\src\multiarray\scalartypes.c.src(2997): warning C4024: '_Py_HashDouble': different types for formal and actual parameter 1
    numpy\core\src\multiarray\scalartypes.c.src(2997): error C2198: '_Py_HashDouble': too few arguments for call
    numpy\core\src\multiarray\scalartypes.c.src(3913): warning C4244: 'return': conversion from 'npy_intp' to 'int', possible loss of data
```

### Expected Behavior

Works

### Installed Versions

Not relevant