0

I am trying to install pandas for python but I keep getting very long error messages. So I tried the following:

  • Uninstall and reinstall python version 3.10.0
  • Install pandas through command prompt by navigating to directory C:\Users\username\AppData\Local\Programs\Python\Python310\Scripts and running pip install pandas
  • I also tried using pip3 install pandas
  • I tried to install a previous version of pandas but still getting the same error

Here is the error:

Microsoft Windows [Version 10.0.19042.1288] (c) Microsoft Corporation. All rights reserved. C:\Users\motaz>cd C:\Users\motaz\AppData\Local\Programs\Python\Python310\Scripts C:\Users\motaz\AppData\Local\Programs\Python\Python310\Scripts>pip install pandas Collecting pandas Using cached pandas-1.3.3.tar.gz (4.7 MB) Installing build dependencies ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\motaz\AppData\Local\Programs\Python\Python310\python.exe' 'C:\Users\motaz\AppData\Local\Temp\pip-standalone-pip-_jyoyc51\__env_pip__.zip\pip' install --ignore-installed --no-user --prefix 'C:\Users\motaz\AppData\Local\Temp\pip-build-env-qf94j_f0\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=51.0.0' wheel 'Cython>=0.29.21,<3' 'numpy==1.17.3; python_version=='"'"'3.7'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.18.3; python_version=='"'"'3.8'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.3; python_version>='"'"'3.9'"'"' and (platform_machine!='"'"'arm64'"'"' or platform_system!='"'"'Darwin'"'"') and platform_machine!='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.7'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy==1.19.2; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'aarch64'"'"'' 'numpy>=1.20.0; python_version=='"'"'3.8'"'"' and platform_machine=='"'"'arm64'"'"' and platform_system=='"'"'Darwin'"'"'' 'numpy>=1.20.0; python_version=='"'"'3.9'"'"' and platform_machine=='"'"'arm64'"'"' and platform_system=='"'"'Darwin'"'"'' cwd: None Complete output (234 lines): 
1
  • For the record, what you've posted doesn't include the actual error. Where it says "Complete output (234 lines)", the actual error would be somewhere in those 234 lines. Commented Jun 17 at 21:29

4 Answers 4

4

Actually, Python 3.10 was enabled for pandas a few days ago. However, the last release (1.3.3) was published on September, 12.

You have to wait for a new release of Pandas to install it using Python 3.10. Until that happens, you can stay with a lower version of Python (like some users suggested).


Update Oct 25: Pandas has released a new version a week ago. It is now installable with Python 3.10.

Sign up to request clarification or add additional context in comments.

Comments

-1

I had the same issue that you had, I had installed an older version of python (namely python 3.7.7). The issue was resolved. As far as I have heard, pandas and numpy packages weren't "ready" for the 3.10 python. So check for older versions.

Comments

-1

You must download the version 3.9.7 and that´s ok when to install pandas. I had that uninstall the version 3.10 (I used the program revo uninstaller)

1 Comment

You don't need to uninstall 3.10, just don't use it for the meantime. Revo is definitely overkill. That said, I don't develop on Windows; I'm just going by what I know from *nix; having two versions wouldn't cause conflicts, would it?
-1

I had to install Python 3.9.7 and then install pandas.

I had to uninstall the version 3.10 (I used the program Revo Uninstaller) to do this.

EDIT: No need to uninstall previous versions, as there are many tools (pyenv among them) that make it easier and safe to have multiple versions of Python alongside each other.


Then, 15 days ago (13th October 2021) they enabled the install of pandas for Python 3.10.

Now you can simply install it from the cmd.exe/prompt.

3 Comments

You don't need to uninstall 3.10, just don't use it for the meantime. Revo is definitely overkill. That said, I don't develop on Windows; I'm just going by what I know from *nix; having two versions wouldn't cause conflicts, would it? [I posted the same comment on Opus's answer.]
Back then I was 14, I had never received any IT-related education and I didn't know pyenv or similar tools existed and multiple installations of Python would always lead me to break something. But yes, these two answers by me and Opus might be misleading to many, so I might as well delete the answer if you suggest so.
No need to delete it :) If I were you, I would just strike out the paragraph about uninstalling 3.10 and put a note like "This is actually unnecessary. You can uninstall 3.10 if you want, but there's no need."

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.