cancerDHC / example-data

This repository is intended to act as a store of example data files from across the NCI Cancer Research Data Commons (CRDC) nodes in a number of formats.
MIT License
0 stars 3 forks source link

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

Open gaurav opened 2 years ago

gaurav commented 2 years ago

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.

joeflack4 commented 2 years ago

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:

https://github.com/numpy/numpy/issues/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: https://github.com/numpy/numpy/issues/17784#issuecomment-863594440