Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
packages in environment at /Users/zkid18/anaconda2/envs/env_zipline:
Name Version Build Channel
alembic 0.7.7 py27_0 Quantopian
asn1crypto 0.24.0 py27_0
bcolz 0.12.1 np111py27h98fbfb4_0 Quantopian
blosc 1.14.3 hd9629dc_0
bottleneck 1.2.1 py27h71f98a3_0
bzip2 1.0.6 hd86a083_4
ca-certificates 2018.03.07 0
certifi 2018.4.16 py27_0
cffi 1.11.5 py27h342bebf_0
chardet 3.0.4 py27h2842e91_1
click 6.7 py27h2b86a94_0
contextlib2 0.5.5 py27h9cb85f4_0
cryptography 2.2.2 py27h1de35cc_0
cyordereddict 0.2.2 py27_0 Quantopian
cython 0.28.2 py27h1de35cc_0
decorator 4.3.0 py27_0
empyrical 0.3.2 py27_0 Quantopian
enum34 1.1.6 py27hf475452_1
hdf5 1.10.1 ha036c08_1
idna 2.6 py27hedea723_1
intel-openmp 2018.0.0 8
intervaltree 2.1.0 py27_0 Quantopian
ipaddress 1.0.22 py27_0
libcxx 4.0.1 h579ed51_0
libcxxabi 4.0.1 hebd6815_0
libedit 3.1.20170329 hb402a30_2
libffi 3.2.1 h475c297_4
libgfortran 3.0.1 h93005f0_2
logbook 0.12.5 py27_0 Quantopian
lru-dict 1.1.4 py27_0 Quantopian
lzo 2.10 h362108e_2
mako 1.0.7 py27h07f8f8b_0
markupsafe 1.0 py27hd3c86fa_1
mkl 2018.0.2 1
multipledispatch 0.5.0 py27_0
ncurses 6.1 h0a44026_0
networkx 2.1 py27_0
numexpr 2.6.5 py27h057f876_0
numpy 1.11.3 py27h8a80b8c_4
openssl 1.0.2o h26aff7b_0
pandas 0.18.1 np111py27_0
pandas-datareader 0.5.0 py27_0
patsy 0.5.0 py27_0
pip 10.0.1 py27_0
pycparser 2.18 py27h0d28d88_1
pyopenssl 17.5.0 py27hfda213f_0
pysocks 1.6.8 py27_0
pytables 3.4.3 py27h5ca999c_0
python 2.7.15 h138c1fe_0
python-dateutil 2.7.3 py27_0
pytz 2018.4 py27_0
readline 7.0 hc1231fa_4
requests 2.18.4 py27h9b2b37c_1
requests-file 1.4.3 py27_0
requests-ftp 0.3.1 py27_0
scipy 1.1.0 py27hcaad992_0
setuptools 39.1.0 py27_0
six 1.11.0 py27h7252ba3_1
snappy 1.1.7 he62c110_3
sortedcontainers 1.4.4 py27_0 Quantopian
sqlalchemy 1.2.7 py27hb402a30_0
sqlite 3.23.1 hf1716c9_0
statsmodels 0.9.0 py27h917ab60_0
tk 8.6.7 h35a86e2_3
toolz 0.9.0 py27_0
urllib3 1.22 py27hc3787e9_0
wheel 0.31.1 py27_0
zipline 1.1.1 np111py27_0 Quantopian
zlib 1.2.11 hf3cbc9b_2
MacOS High SeriaPython 2.7.13 :: Anaconda custom (x86_64)64conda environment$ pip freeze or $ conda listNow that you know a little about me, let me tell you about the issue I am
having:
I have installed zipline by creating a new conda environment
zipline run --help
works fine.
But when I decided to work in jupyter notebook (run jupyter notebook comand in cmd) I faced with a problem of importing zipline
%load_ext zipline
ImportError: No module named zipline
Same problem with
import zipline
ImportError: No module named zipline
jupyter notebokImportError: No module named ziplineHere is how you can reproduce this issue on your machine:
zipline by creating a new conda environmentjupyter notebook in cmd%load_ext ziplineI tried to install zipline using pip and conda using this instructions: http://www.zipline.io/install.html
Due to the conflicts with python libraries I had import errors, so I decided to create a new conda environment.
...
...
Sincerely,
Daniil
Hi @zkid18 my guess here is that because there is no jupyter module installed in your environment, conda is running Jupyter from where default conda packages live.
In your conda env, try running conda install jupyter or pip install jupyter, then confirm that the module is in your env with conda list -n env-name.
If that works, then try running the notebook again.
Going to close this due to no follow-up from OP. Feel free to re-open if you're still having issue.
Hey I have run into the same issue today while installing in my OSX.
I have the enviroment on Conda, i have already check if it was a jupyter notebook thing, but even when i can run zipline in the cmd and see the different options i cant open it with juypter. I try installing it again but no luck
Most helpful comment
Hi @zkid18 my guess here is that because there is no
jupytermodule installed in your environment, conda is running Jupyter from where default conda packages live.In your conda env, try running
conda install jupyterorpip install jupyter, then confirm that the module is in your env withconda list -n env-name.If that works, then try running the notebook again.