zipline: Unable to Install on Mac OS Mojave 10.14.2

Dear Zipline Maintainers,

Before I tell you about my issue, let me describe my environment:

Environment

  • Operating System: Mac OS Mojave 10.14.2
  • Python Version: 3.7.1
  • Python Bitness: 64
  • How did you install Zipline: (pip, conda, or other (please explain)):
  • Step 1: virtualenv venv
  • Step 2: source venv/bin/activate
  • Step 3: pip3 install cython numpy
  • Step 4: pip3 install zipline
  • Python packages: Cython==0.29.6 numpy==1.16.2

Now that you know a little about me, let me tell you about the issue I am having:

Description of Issue

  • What did you expect to happen? I was hoping to see Zipline installed without any errors.
  • What happened instead? I over 67,000 lines of messages, followed by an error message in red, as below: Command "/Users/prasant/Documents/Programming/Python/Trading/venv/bin/python3.7 /Users/prasant/Documents/Programming/Python/Trading/venv/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/xx/hbg55ynx52d_1qpy5npcb0m40000gn/T/pip-build-env-87ox9ql3/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- wheel setuptools Cython "numpy==1.9.3; python_version=='3.5'" "numpy==1.12.1; python_version=='3.6'" "numpy==1.13.1; python_version>='3.7'"" failed with error code 1 in None

Here is how you can reproduce this issue on your machine:

Reproduction Steps

  1. virtualenv venv
  2. `source venv/bin/activate’
  3. pip3 install cython numpy
  4. pip3 install zipline

What steps have you taken to resolve this already?

I have also tried to install this outside of the VirtualEnv. The packages are as below: appnope==0.1.0 backcall==0.1.0 beautifulsoup4==4.7.1 bleach==3.0.2 bs4==0.0.1 certifi==2018.11.29 chardet==3.0.4 cloudpickle==0.7.0 cycler==0.10.0 Cython==0.29.6 dask==1.1.1 decorator==4.3.0 defusedxml==0.5.0 entrypoints==0.2.3 fuzzywuzzy==0.17.0 h5py==2.9.0 idna==2.8 inflection==0.3.1 ipykernel==5.1.0 ipython==7.1.1 ipython-genutils==0.2.0 ipywidgets==7.4.2 jedi==0.13.1 jellyfish==0.7.1 Jinja2==2.10 jsonschema==2.6.0 jupyter==1.0.0 jupyter-client==5.2.3 jupyter-console==6.0.0 jupyter-contrib-core==0.3.3 jupyter-contrib-nbextensions==0.5.1 jupyter-core==4.4.0 jupyter-highlight-selected-word==0.2.0 jupyter-latex-envs==1.4.6 jupyter-nbextensions-configurator==0.4.1 kiwisolver==1.0.1 lxml==4.3.0 MarkupSafe==1.1.0 matplotlib==3.0.2 mistune==0.8.4 more-itertools==4.3.0 mpmath==1.1.0 nbconvert==5.4.0 nbformat==4.4.0 networkx==2.2 ngram==3.3.2 nltk==3.4 nose==1.3.7 notebook==5.7.2 numpy==1.16.2 pandas==0.23.4 pandocfilters==1.4.2 parso==0.3.1 pexpect==4.6.0 pickleshare==0.7.5 Pillow==5.4.1 prometheus-client==0.4.2 prompt-toolkit==2.0.7 ptyprocess==0.6.0 Pygments==2.2.0 pyparsing==2.1.10 python-dateutil==2.7.5 python-Levenshtein==0.12.0 pytz==2016.10 PyWavelets==1.0.1 PyYAML==3.13 pyzmq==17.1.2 qtconsole==4.4.3 Quandl==3.4.5 requests==2.21.0 scikit-image==0.14.2 scikit-learn==0.20.2 scipy==1.1.0 seaborn==0.9.0 Send2Trash==1.5.0 shap==0.28.3 singledispatch==3.4.0.3 six==1.11.0 soupsieve==1.8 sympy==1.3 terminado==0.8.1 testpath==0.4.2 toolz==0.9.0 tornado==5.1.1 tqdm==4.31.0 traitlets==4.3.2 urllib3==1.24.1 virtualenv==16.1.0 wcwidth==0.1.7 webencodings==0.5.1 widgetsnbextension==3.4.2 wordcloud==1.5.0 …

Anything else?

Sincerely, Prasant

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

Honestly, I have never seen a module as difficult to install as zipline. Only works with a specific version of python (3.5) and specific version of conda (4.6.11). I think I have it installed, but I still can’t run the basic buyapple.py backrest to test it out. I appreciate all the developers work, but this is very frustrating.

And what about zipline_live, does that only work with python 2.7?

On Tue, Aug 20, 2019, 10:06 AM fritzybloch notifications@github.com wrote:

I am having similar problems on Mojave 10.14.6. I have a Python 3.5.6 environment set up, however conda is 4.7.11. I have tried numerous times to downgrade conda using conda config --set allow_conda_downgrades true conda install conda=4.6.11 however this never works. I always get this in return leaving conda in 4.7.11 `Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment:
Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. Examining python: 4%|▉ | 3/75 [00:00<00:00, 22036.62it| ] Comparing specs that have this dependency: 0%| | 0/2 [00:00<?, ?it/s] F/ ding shortest conflict path for python=3.5: 17%|▏| 1/6 [00:00<00:00, 7.30itFinding shortest conflict path for python=3.5: 33%|▎| 2/6 [00:00<00:00, 14.59itFinding shortest conflict path for python[version=‘>=2.7,<2.8.0a0’]: 33%|▎| 2/6Finding shortest confli/ path for python[version=‘>=2.7,<2.8.0a0’]: 50%|▌| 3/6Finding shortest conflict path for python-libarchive-c: 50%|▌| 3/6 [00:00<00:00Finding shortest conflict path for python[version=‘>=3.7,❤️.8.0a0’]: 67%|▋| 4/6Finding shortest conflict path for python[version=‘>=3.7,❤️.8.0a0’]: 83%|▊| 5/6Finding shortest conflict path for python[version=‘>=3.6,❤️.7.0a0’]: 83%|▊| 5/6Comparing specs that have this dependency: 50%|█ | 1/2 [00:00<00:00, 1.38it/s]Finding shortest conflict path for python[version=‘>=3.5,❤️.6.0a0’]: 0%| | 0/2Examining setuptools: 15%|███ | 11/75 [00:00<00:09, 6.91it/s]Comparing specs that have this dependency: 0%| | 0/2 [00:00<?, ?it/s]Finding short| t conflict path for setuptools[version=‘>=31.0.1’]: 0%| | 0/2 [Examining certifi: 17%|████▏ | 13/75 [00:00<00:06, 9.07it/s]Comparing specs that have this dependency: 0%| | 0/2 [00:00<?, ?it/s]Finding short- t conflict path for certifi[version=‘>=2017.4.17’]: 0%| | 0/4 [Finding shortest conflict path for ca-certificates: 25%|▎| 1/4 [00:00<00:00,\ 1Finding shortest co| lict path for certifi: 50%|▌| 2/4 [00:00<00:00, 7.03it/s]Finding shortest conflict path for certifi[version=‘>=2016.09’]: 75%|▊| 3/4 [00Comparing specs that have this dependency: 50%|█ | 1/2 [00:00<00:00, 2.12it/s]Finding shortest conflict path for certifi: 33%|▎| 1/3 [00:00<00:00, 159.21itfailed UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment:

  • conda=4.6.11 -> python[version=‘>=2.7,<2.8.0a0|>=3.6,❤️.7.0a0|>=3.7,❤️.8.0a0’]

If python is on the left-most side of the chain, that’s the version you’ve asked for. When python appears to the right, that indicates that the thing on the left is somehow not available for the python version you are constrained to. Your current python version is (python=3.5). Note that conda will not change your python version to a different minor version unless you explicitly specify that.

The following specifications were found to be incompatible with each other:

Package setuptools conflicts for: conda=4.6.11 -> setuptools[version=‘>=31.0.1’] conda=4.6.11 -> python[version=‘>=3.6,❤️.7.0a0’] -> pip -> setuptools python=3.5 -> pip -> setuptools Package wheel conflicts for: python=3.5 -> pip -> wheel conda=4.6.11 -> python[version=‘>=3.6,❤️.7.0a0’] -> pip -> wheel Package ca-certificates conflicts for: conda=4.6.11 -> python[version=‘>=3.6,❤️.7.0a0’] -> openssl=1.0 -> ca-certificates python=3.5 -> openssl=1.0 -> ca-certificates Package certifi conflicts for: python=3.5 -> pip -> setuptools -> certifi[version=‘>=2016.09’] conda=4.6.11 -> requests[version=‘>=2.18.4,❤️’] -> certifi[version=‘>=2016.09|>=2017.4.17’] Package pip conflicts for: conda=4.6.11 -> python[version=‘>=3.6,❤️.7.0a0’] -> pip python=3.5 -> pip`

Can anyone shed any light on this for we poor Mac users?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/quantopian/zipline/issues/2437?email_source=notifications&email_token=ABFSUGIMX5L4LDRB6RUP553QFP26TA5CNFSM4G3O5H42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4WNBXA#issuecomment-523030748, or mute the thread https://github.com/notifications/unsubscribe-auth/ABFSUGOCUIMPTPWAKC5623LQFP26TANCNFSM4G3O5H4Q .

Using conda + python3.6 worked for me.

after going in circles with pip I installed it using conda in a few seconds. First I used a python 3.7 env, within a few seconds an error message popped up that clearly said “in plain text” need to have env lower than 3.6 so I created a 3.5 env and it installed in less than 10 seconds. Did not have to switch to conda 4.7, using Anaconda 4.9.2.

I gave up on zipline. I don’t think its maintained anymore.