Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problema na instalação via pip no python 3.12 #867

Open
enriicoo opened this issue Jun 4, 2024 · 1 comment
Open

Problema na instalação via pip no python 3.12 #867

enriicoo opened this issue Jun 4, 2024 · 1 comment

Comments

@enriicoo
Copy link

enriicoo commented Jun 4, 2024

...
      copying pandas\tests\window\moments\test_moments_rolling_skew_kurt.py -> build\lib.win-amd64-cpython-312\pandas\tests\window\moments
      copying pandas\tests\window\moments\__init__.py -> build\lib.win-amd64-cpython-312\pandas\tests\window\moments
      creating build\lib.win-amd64-cpython-312\pandas\_libs\tslibs
      copying pandas\_libs\tslibs\__init__.py -> build\lib.win-amd64-cpython-312\pandas\_libs\tslibs
      creating build\lib.win-amd64-cpython-312\pandas\_libs\window
      copying pandas\_libs\window\__init__.py -> build\lib.win-amd64-cpython-312\pandas\_libs\window
      creating build\lib.win-amd64-cpython-312\pandas\io\formats\templates
      copying pandas\io\formats\templates\html.tpl -> build\lib.win-amd64-cpython-312\pandas\io\formats\templates
      UPDATING build\lib.win-amd64-cpython-312\pandas/_version.py
      set build\lib.win-amd64-cpython-312\pandas/_version.py to '1.2.4'
      running build_ext
      building 'pandas._libs.algos' extension
      creating build\temp.win-amd64-cpython-312
      creating build\temp.win-amd64-cpython-312\Release
      creating build\temp.win-amd64-cpython-312\Release\pandas
      creating build\temp.win-amd64-cpython-312\Release\pandas\_libs
      "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DNPY_NO_DEPRECATED_API=0 -I.\pandas\_libs -Ipandas/_libs/src/klib -IC:\Users\MeuUser\AppData\Local\Temp\pip-build-env-36xga6rn\overlay\Lib\site-packages\numpy\cor
e\include -IC:\Users\MeuUser\AppData\Local\Programs\Python\Python312\include -IC:\Users\MeuUser\AppData\Local\Programs\Python\Python312\Include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /Tcp
andas\_libs/algos.c /Fobuild\temp.win-amd64-cpython-312\Release\pandas\_libs/algos.obj
      algos.c
      c:\users\meuuser\appdata\local\programs\python\python312\include\pyconfig.h(230): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
      [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

Meu sistema operacional é Windows e não uso conda.

@tricktx
Copy link

tricktx commented Jun 4, 2024

Olá, Enrico. Tudo bem?

Pelo erro, parece que o sistema tá precisando buildar o pandas (não deve ter binário compatível disponível) e tá falhando
Isso deve ser fruto da combinação de OS e versão do Python, que parecem ser Windows (talvez 10?) e Python 3.11
Se for isso mesmo, tem algumas saídas: a primeira e que acredito que tenha mais chance de funcionar é trocar a versão do Python pra uma anterior, talvez a 3.10 já seja suficiente
A segunda (que pode ser feita também independente da primeira) é tentar instalar a pré-release da versão 2 do pacote, que tá com uma versão mais atualizada do pandas
Que no presente momento é a versão 2.0.0b15
Deve conseguir instalar com pip install basedosdados==2.0.0b15
Eu sugiro fazer as duas coisas. Se ainda assim falhar, posta aqui!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants