Error while install, cant build wheel for pandas 1.1.0
Created by: hemangjoshi37a
Cant build wheel for pandas (PEP517)
pandas/_libs/writers.c:4926:5: error: ‘_PyUnicode_get_wstr_length’ is deprecated [-Werror=deprecated-declarations]
4926 | __pyx_v_l = PyUnicode_GET_SIZE(__pyx_v_val);
| ^~~~~~~~~
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from pandas/_libs/writers.c:35:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/writers.c:4926:5: error: ‘PyUnicode_AsUnicode’ is deprecated [-Werror=deprecated-declarations]
4926 | __pyx_v_l = PyUnicode_GET_SIZE(__pyx_v_val);
| ^~~~~~~~~
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from pandas/_libs/writers.c:35:
/usr/include/python3.9/cpython/unicodeobject.h:580:45: note: declared here
580 | Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode(
| ^~~~~~~~~~~~~~~~~~~
pandas/_libs/writers.c:4926:5: error: ‘_PyUnicode_get_wstr_length’ is deprecated [-Werror=deprecated-declarations]
4926 | __pyx_v_l = PyUnicode_GET_SIZE(__pyx_v_val);
| ^~~~~~~~~
In file included from /usr/include/python3.9/unicodeobject.h:1026,
from /usr/include/python3.9/Python.h:97,
from pandas/_libs/writers.c:35:
/usr/include/python3.9/cpython/unicodeobject.h:446:26: note: declared here
446 | static inline Py_ssize_t _PyUnicode_get_wstr_length(PyObject *op) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1