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

BUG: Failed to install Pandas with pip3 and Python3.9 on macOS Big Sur #37880

Closed
1 task
MarioCatuogno opened this issue Nov 15, 2020 · 3 comments
Closed
1 task
Labels
Dependencies Required and optional dependencies Duplicate Report Duplicate issue or pull request Python 3.9

Comments

@MarioCatuogno
Copy link

  • [ x ] I have checked that this issue has not already been reported.

  • [ x ] I have confirmed this bug exists on the latest version of pandas.

  • (optional) I have confirmed this bug exists on the master branch of pandas.


Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.

Code Sample, a copy-pastable example

pip install pandas
pip3 install pandas
pip3 install pandas --no-build-isolation --no-cache-dir
sudo pip3 install pandas --no-cache-dir

Problem description

I've done a clean installation of macOS Big Sur and a clean install of Python3.9 via Homebrew (brew install python3). After that I installed pip3 with brew install pip command and I wanted to install Pandas but I'm always getting the following error. I've tried with all the commands listed above to install Pandas on macOS Big Sur and Python3...

Anyone can help? These are the only packages actually installed:

Package Version


pip 20.2.4
setuptools 50.3.2
wheel 0.35.1

Expected Output

Output of pip install pandas

Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python@3.9/bin/python3.9 /usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/zv/0q58rjv549bd4qjdqlrwlvl40000gn/T/tmpzr3sthd6
cwd: /private/var/folders/zv/0q58rjv549bd4qjdqlrwlvl40000gn/T/pip-install-pvlaq6iq/pandas
Complete output (23 lines):
init_dgelsd failed init
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in
main()
File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.9/site-packages/pip/vendor/pep517/in_process.py", line 114, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/zv/0q58rjv549bd4qjdqlrwlvl40000gn/T/pip-build-env-ly4c8n5
/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 149, in get_requires_for_build_wheel
return self.get_build_requires(
File "/private/var/folders/zv/0q58rjv549bd4qjdqlrwlvl40000gn/T/pip-build-env-ly4c8n5
/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 130, in get_build_requires
self.run_setup()
File "/private/var/folders/zv/0q58rjv549bd4qjdqlrwlvl40000gn/T/pip-build-env-ly4c8n5
/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 253, in run_setup
super(BuildMetaLegacyBackend,
File "/private/var/folders/zv/0q58rjv549bd4qjdqlrwlvl40000gn/T/pip-build-env-ly4c8n5
/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 145, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 488, in
import numpy as np
File "/private/var/folders/zv/0q58rjv549bd4qjdqlrwlvl40000gn/T/pip-build-env-ly4c8n5
/overlay/lib/python3.9/site-packages/numpy/init.py", line 286, in
raise RuntimeError(msg)
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned


ERROR: Command errored out with exit status 1: /usr/local/opt/python@3.9/bin/python3.9 /usr/local/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/zv/0q58rjv549bd4qjdqlrwlvl40000gn/T/tmpzr3sthd6 Check the logs for full command output.

@MarioCatuogno MarioCatuogno added Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Nov 15, 2020
@jreback
Copy link
Contributor

jreback commented Nov 15, 2020

see #37057 you need to install at least numpy 1.19.3

@jreback jreback added Dependencies Required and optional dependencies Python 3.9 and removed Bug Needs Triage Issue that has not been reviewed by a pandas team member labels Nov 15, 2020
@jreback jreback added this to the No action milestone Nov 15, 2020
@jreback jreback added the Duplicate Report Duplicate issue or pull request label Nov 15, 2020
@jreback jreback closed this as completed Nov 15, 2020
@MarioCatuogno
Copy link
Author

@jreback Even if I install numpy 1.19.4 I'm still getting the error. Now I have installed the following packages but still getting the same exact error with pip install pandas!

Package Version


numpy 1.19.4
pip 20.2.4
setuptools 50.3.2
wheel 0.35.1

@jreback
Copy link
Contributor

jreback commented Nov 16, 2020

@MarioCatuogno you should red thru the other issue

this is a numpy install problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Required and optional dependencies Duplicate Report Duplicate issue or pull request Python 3.9
Projects
None yet
Development

No branches or pull requests

2 participants