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

Cannot install pandas on my computer: odd numpy error #23

Open
gaurav opened this issue Oct 10, 2021 · 1 comment
Open

Cannot install pandas on my computer: odd numpy error #23

gaurav opened this issue Oct 10, 2021 · 1 comment
Assignees

Comments

@gaurav
Copy link
Collaborator

gaurav commented Oct 10, 2021

I tried using the current main branch, which includes pandas, but I'm still running into an odd error trying to install numpy, which is one of its dependencies. I've removed pandas from the Pipfile in PR #22, but I'm hoping I can figure out why this isn't working for me before then.

I tried running pipenv install --dev and got this error log.

Let me know if anybody has any idea why this might be happening. Otherwise, I'll keep poking at it locally.

@gaurav gaurav self-assigned this Oct 10, 2021
@joeflack4
Copy link

joeflack4 commented Oct 10, 2021

Looks like the main error is:
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly

Which is being caused by this:

    File "/private/var/folders/j7/wl1qrc1n7fv9vnszw_0dsm680000gn/T/pip-build-env-cs0zxz7a/overlay/lib/python3.9/site-packages/wheel/macosx_libfile.py", line 356, in calculate_macosx_platform_tag
      assert len(base_version) == 2
  AssertionError

That seems really silly. Why should it have to run these tests to build the wheel. I am kinda annoyed when binaries aren't pre-built anyway. Maybe there's a good reason though.


Possible solutions

I googled "numpy install error calculate_macosx_platform_tag", since looks like err occurs in the calculate_macosx_platform_tag func. Good enough place to start a search. I found this:

numpy/numpy#17784

Some people seem to like this solution in there:
pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy-1.21.0.dev0

and this one:
pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy

This guy fixed by setting a specific environmental variable: numpy/numpy#17784 (comment)

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