Olá Galera, achei esse erro abaixo a importar pandas : import pandas as pd em um dos exercícios do curso de Python e APIs: conhecendo a biblioteca Requests alguém pode ajudar-me ?
{ "name": "ImportError", "message": "C extension: pandas.compat._constants not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext' to build the C extensions first.", "stack": "--------------------------------------------------------------------------- ImportError Traceback (most recent call last) File ~/projeto_Requests/venv/lib/python3.10/site-packages/pandas/init.py:26 24 try: 25 # numpy compat ---> 26 from pandas.compat import ( 27 is_numpy_dev as _is_numpy_dev, # pyright: ignore[reportUnusedImport] # noqa: F401 28 ) 29 except ImportError as _err: # pragma: no cover
File ~/projeto_Requests/venv/lib/python3.10/site-packages/pandas/compat/init.py:17 15 from typing import TYPE_CHECKING ---> 17 from pandas.compat._constants import ( 18 IS64, 19 ISMUSL, 20 PY310, 21 PY311, 22 PY312, 23 PYPY, 24 ) 25 import pandas.compat.compressors
ImportError: cannot import name 'ISMUSL' from 'pandas.compat._constants' (/home/scaionda/projeto_Requests/venv/lib/python3.10/site-packages/pandas/compat/_constants.py)
The above exception was the direct cause of the following exception:
ImportError Traceback (most recent call last) Cell In[52], line 1 ----> 1 import pandas as pd
File ~/projeto_Requests/venv/lib/python3.10/site-packages/pandas/init.py:31 29 except ImportError as _err: # pragma: no cover 30 _module = _err.name ---> 31 raise ImportError( 32 f"C extension: {_module} not built. If you want to import " 33 "pandas from the source directory, you may need to run " 34 "'python setup.py build_ext' to build the C extensions first." 35 ) from _err 37 from pandas._config import ( 38 get_option, 39 set_option, (...) 43 options, 44 ) 46 # let init-time option registration happen
ImportError: C extension: pandas.compat._constants not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext' to build the C extensions first." }