data.world-py icon indicating copy to clipboard operation
data.world-py copied to clipboard

pip install datadotworld\[pandas\] fails on macOS

Open dheerajchand opened this issue 4 years ago • 0 comments

Hi,

macOS 10.15.7 , Homebrew Python 3.9

I'm getting a clang and pandas error. clang is installed via Homebrew and is fine. Pandas is fine in the virtualenv, too.

This is the relevant part of the error:

      File "/private/var/folders/2h/qd0400yx26lbw_dr74fyjjv40000gn/T/pip-install-p2t1aktb/pandas/setup.py", line 366, in check_cython_extensions
        raise Exception("""Cython-generated file '{src}' not found.
    Exception: Cython-generated file 'pandas/_libs/algos.c' not found.
                    Cython is required to compile pandas from a development branch.
                    Please install Cython or download a release package of pandas.

    ----------------------------------------
  Rolling back uninstall of pandas
  Moving to /Users/dheerajchand/.virtualenvs/geo3/lib/python3.8/site-packages/pandas-1.1.2.dist-info/
   from /Users/dheerajchand/.virtualenvs/geo3/lib/python3.8/site-packages/~andas-1.1.2.dist-info
  Moving to /Users/dheerajchand/.virtualenvs/geo3/lib/python3.8/site-packages/pandas/
   from /Users/dheerajchand/.virtualenvs/geo3/lib/python3.8/site-packages/~andas
ERROR: Command errored out with exit status 1: /Users/dheerajchand/.virtualenvs/geo3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/2h/qd0400yx26lbw_dr74fyjjv40000gn/T/pip-install-p2t1aktb/pandas/setup.py'"'"'; __file__='"'"'/private/var/folders/2h/qd0400yx26lbw_dr74fyjjv40000gn/T/pip-install-p2t1aktb/pandas/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/2h/qd0400yx26lbw_dr74fyjjv40000gn/T/pip-record-98rxt208/install-record.txt --single-version-externally-managed --compile --install-headers /Users/dheerajchand/.virtualenvs/geo3/include/site/python3.8/pandas Check the logs for full command output.
 ~ 

Any suggestions?

dheerajchand avatar Nov 03 '20 15:11 dheerajchand