Installation check

Platform

Windows-10-10.0.19045-SP0

Installation Method

pip install

pandas Version

1.5.3

Python Version

3.11

Installation Logs

Getting requirements to build wheel ... error error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [23 lines of output] Traceback (most recent call last): File "C:\Users\Saulo\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Users\Saulo\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Saulo\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Saulo\AppData\Local\Temp\pip-build-env-t_le71t3\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Saulo\AppData\Local\Temp\pip-build-env-t_le71t3\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires self.run_setup() File "C:\Users\Saulo\AppData\Local\Temp\pip-build-env-t_le71t3\overlay\Lib\site-packages\setuptools\build_meta.py", line 485, in run_setup self).run_setup(setup_script=setup_script) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Saulo\AppData\Local\Temp\pip-build-env-t_le71t3\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup exec(code, locals()) File "", line 4, in File "C:\Users\Saulo\AppData\Local\Temp\pip-install-6gav0rrs\version_ba2e722c81db447ab3edb71ad1c175cb\version.py", line 2, in from itertools import izip_longest ImportError: cannot import name 'izip_longest' from 'itertools' (unknown location) [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Comment From: evrocha

I got this import error. I need a pandas version older than 2.0 (current) and I have this error continuously. I don't know what else to do, can anyone help me?

Comment From: rhshadrach

izip_longest is from Python 2. It's not clear what the issue is from the traceback, but it is not a pandas issue.

Comment From: mroeschke

Agreed it doesn't appear like a pandas specific issue. I would recommend creating a Python 3 virtual environment and then installing pandas in that environment

Comment From: evrocha

@rhshadrach

izip_longest is from Python 2. It's not clear what the issue is from the traceback, but it is not a pandas issue.

I noticed that both python v3.10 and v3.11 do not have the itertools module folder in their files. Could this be a problem? If yes, how do I fix it?

Comment From: evrocha

Agreed it doesn't appear like a pandas specific issue. I would recommend creating a Python 3 virtual environment and then installing pandas in that environment

Even in a virtual environment this problem continues.

Comment From: rhshadrach

@evrocha - I would recommend posting your question to Stack Overflow

Comment From: mroeschke

I would also recommend double checking your Python installation