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
, orother (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
virtualenv venv
- `source venv/bin/activate’
pip3 install cython numpy
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)
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:
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.