Sinaptik-AI / pandas-ai

Chat with your database (SQL, CSV, pandas, polars, mongodb, noSQL, etc). PandasAI makes data analysis conversational using LLMs (GPT 3.5 / 4, Anthropic, VertexAI) and RAG.
https://pandas-ai.com
Other
11.67k stars 1.07k forks source link

pip install pandasai fails on Windows #1221

Closed gabilanbrc closed 2 weeks ago

gabilanbrc commented 2 weeks ago

System Info

pip (24.0) Windows 11 Home Python 3.12 Visual C++ (latest)

🐛 Describe the bug

If I try to install pandasai using pip (24.0) on my Windows 11 Home laptop with Python 3.12, after installing the Visual C++ suggested (by the first error) I get the following error ` build\lib.win32-cpython-312\pandas_libs\algos.cp312-win_amd64.pyd : fatal error LNK1120: 196 externos sin resolver error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.40.33807\bin\HostX86\x86\link.exe' failed with exit code 1120 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pandas Failed to build pandas ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects` Does anyone had the same issue?

dosubot[bot] commented 2 weeks ago

Hey there, @gabilanbrc! I'm here to assist you with bug fixes, answer your questions, and guide you to become a contributor. Let's tackle this issue together!

Pandas-ai is not compatible with Python 3.12. The supported Python versions are >=3.9,<3.9.7 || >3.9.7,<4.0 [1].

To continue talking to Dosu, mention @dosu.

gabilanbrc commented 2 weeks ago

Hi Team, I'm not an expert on python but reading this >=3.9,<3.9.7 || >3.9.7,<4.0 seems that the only incompatible version is 3.9.7 Is anyone having the same issues?

gabilanbrc commented 2 weeks ago

Today it was solved without changing anything, not sure what happened but I was able to install using pip