zipline icon indicating copy to clipboard operation
zipline copied to clipboard

Mac OSX 10.13 always get installing Zipline stuck

Open burkaslarry opened this issue 9 years ago • 10 comments

Dear Zipline Maintainers,

I need help on installation 1 Always stuck on

Using cached zipline-1.1.1.tar.gz

pip installed as 8.1.0

burkaslarry avatar Nov 16 '17 14:11 burkaslarry

screenshot 2017-11-16 22 47 54 screenshot 2017-11-16 22 48 00 screenshot 2017-11-16 22 48 47

while pip install --verbose zipline

burkaslarry avatar Nov 16 '17 14:11 burkaslarry

Hi @burkaslarry , I've definitely seen slowness while setuptools is easy_installing setup dependencies. Maybe it's progressing but slowly?

Either way, want to try pip install numpy cython first, and then try pip install zipline after? Then it can avoid the easy_install.

richafrank avatar Nov 16 '17 15:11 richafrank

Usually how long does it take for setup.py to be finished ? I have tried using verbose, got repeating numpy warnings

Installing collected packages: zipline
  Running setup.py install for zipline ... /

burkaslarry avatar Nov 16 '17 15:11 burkaslarry

like this one. repeatedly

_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
    #warning "Using deprecated NumPy API, disable it by " \
     ^
    1 warning generated.
    In file included from zipline/assets/_assets.c:526:
    In file included from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4:
    In file included from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
    In file included from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1809:
    /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "          "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
    #warning "Using deprecated NumPy API, disable it by " \
     ^

burkaslarry avatar Nov 16 '17 15:11 burkaslarry

The module is building 'zipline.assets.continuous_futures' extension

burkaslarry avatar Nov 16 '17 15:11 burkaslarry

Usually how long does it take for setup.py to be finished ?

I don't have any broad stats, but on my machine, it took about 2 minutes just now.

richafrank avatar Nov 16 '17 15:11 richafrank

Maybe we have to tell others installing by these steps : (Mac OSX 10.13.1)

pip install -upgrade pip python -m pip brew update ram get stable rvm install 1.9.3 pip install numpy pip install cython pip install -U setuptools pip install h5py pip install zipline

burkaslarry avatar Nov 16 '17 15:11 burkaslarry

I buy that - probably a best practice to install numpy and cython before installing zipline. Opened a PR.

richafrank avatar Nov 21 '17 00:11 richafrank

pip install numpy cython

did the trick per @richafrank, thank you!

oxbits avatar Jul 01 '18 17:07 oxbits

Looks like this one has long since been resolved. Feel free to reopen if you're still having trouble!

jdricklefs avatar Dec 31 '19 15:12 jdricklefs