Open hollowheights opened 5 years ago
I have the same issue with Jupyter notebook. The solution is to connect Kernel to your notebook. Check this out https://medium.com/@ace139/enable-multiple-kernels-in-jupyter-notebooks-6098c738fe72
This seems very relevant. I am using pycharm though. And I'm not sure what info I should use in the following part
(some-env)$ python -m ipykernel install --user --name <some-env> --display-name "<name-of-your-kernel>"
I basically don't have experience with virtual environments. As far as I understand the libraries are kept for themselves, but I need python and/or pycharm to look for zipline in this specific location instead of where my other libraries/modules are.
Update: I have tested with jupyter notebook now. When I use a previously installed module such as numpy it runs in both Pycharm and Jupyter. However "no module name xxx" is returned when I try to import backtrader and zipline. Backtrader was installed with pip with no error messages, so I see to reason to think the installation in itself didn't work out.
Any ideas what could cause this change so that new modules are not being implemented successfully?
Do you connect Kernel to env_zipline when you are using Jupyter notebook? Backtrader does not require it's own unique environment, but Zipline does.
Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment
Python 3.4 with pycharm
Now that you know a little about me, let me tell you about the issue I am having:
I have tried for a couple of hours to install zipline, but with no luck.
Description of Issue
What did you expect to happen? Expected pip not to work but conda to work.
What happened instead? I can see zipline is installed, but keep getting the error.
Here is how you can reproduce this issue on your machine:
Reproduction Steps
I ended up installing zipline from these instructions:
conda create -n env_full anaconda python=3.4 conda activate env_full conda install -c Quantopian zipline
What steps have you taken to resolve this already?
My best guess for now is that when I try to import zipline into my python file in pycharm, pycharm (or python in general) is looking for the module in the wrong place. The module is installed in the separate "env_full" to not conflict with previous modules - at least as far as I have understood. ...
Anything else?
Hope to get some help here - installing zipline har already taken a few hour more than I had expected :) ...
Sincerely, Hollow Heights