1

I am trying to install Pandas.

I did:

pip install pandas

And I tried other versions:

pip install pandas=2.2.1

Always the same error:

root@thinkpad:/# pip install pandas==2.2.1
Collecting pandas==2.2.1
  Downloading pandas-2.2.1.tar.gz (4.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.4/4.4 MB 12.6 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [204 lines of output]

I am on a lightweight Debian 12, using Python 3.13. The latest beta release, I upgraded pip, and checked these as well:

python3 -m pip install --upgrade pip setuptools wheel    
sudo apt install build-essential libatlas-base-dev

The problem always persists; any help is welcome.

7
  • Which version of Python 3 are you on? Commented Jul 8 at 0:59
  • python 3.13 the 3rd beta 0b3, I installed it and trying to setup my whole environment to test it. started with numpy it installed fine, but then I am facing issues with pandas, the OS is a lightweight fresh install of debian that I try for the first time, I do not know which component is causing these issues. Anyone who encountered similar problems may know which python or linux component needs to be installed, updated or fixed ... Commented Jul 8 at 1:02
  • You might want to try with Python 3.12 on a virtual environment. The official support documentation for Pandas does not mention Python 3.13. pandas.pydata.org/docs/getting_started/… Commented Jul 8 at 3:07
  • I am trying to see the speed improvement in the new python 3.13 that has been released as beta for months for developers, I hope there is a way to get around these errors and test pandas on it. Commented Jul 8 at 3:16
  • 1
    @ElyesLounissi its no use, no one here will be able to single-handedly update pandas and its dependencies to be compatible with a beta python version. You will need to wait for the lib to be officially compatible. Only then can you also make meaningful benchmarks Commented Jul 8 at 14:12

1 Answer 1

3

As of now, python 3.13 support is an open issue in the pandas github so it simply does not work yet. Wait for the pandas devs to have at least a pandas beta version ready.

Not the answer you're looking for? Browse other questions tagged or ask your own question.