-
Notifications
You must be signed in to change notification settings - Fork 657
No module named mplfinance in conda environment #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
resolved via email |
Same here. How did you solve the issue? |
This is what I had sent to Damodar: I am guessing that pip may have installed it in a place that your python sys.path does not include. In general, with conda, you must first activate the conda environment into which you want to install mplfinance, and you must use the pip that is installed by conda in that environment. There are other ways that work but that is the usual one. At this point you can try again as described above, or to figure out what went wrong you may want to examine sys.path from the jupyter notbook (compare with command line python just to confirm they are the same), and try to find where in the file system mplfinance got installed. More information on sys.path here: https://bic-berkeley.github.io/psych-214-fall-2016/sys_path.html Let me know if that helps. But apparently Damodar had found some issue with the jupyter setup ... that it was running under base or root instead of running under the same virtual environment that was intended (i.e. the same virtual environment into which mplfinance was installed). Also, whenever i can't import something (package not found) from jupyter, i always then try a plain Python interpreter prompt to see if that works. And again, as was said above, make sure you are running jupyter or python in the same conda environment into which mplfinance was installed. All the best. --Daniel |
Hi Daniel,
I first pip install mplfinance with Windows Command Prompt and tried importing it in Jupyter Notebook and apparently it did not work.
Then I just tried pip install again in Anaconda Prompt and somehow it worked.
Hope the info helps!
…________________________________
From: Daniel Goldfarb <[email protected]>
Sent: Monday, April 20, 2020 4:56:17 PM
To: matplotlib/mplfinance <[email protected]>
Cc: MMSYYZ <[email protected]>; Comment <[email protected]>
Subject: Re: [matplotlib/mplfinance] No module named mplfinance in conda environment (#99)
This is what I had sent to Damodar:
I am guessing that pip may have installed it in a place that your python sys.path does not include.
In general, with conda, you must first activate the conda environment into which you want to install mplfinance, *and you must use the pip that is installed by conda in that environment.* There are other ways that work but that is the usual one.
At this point you can try again as described above, or to figure out what went wrong you may want to examine sys.path from the jupyter notbook (compare with command line python just to confirm they are the same), and try to find where in the file system mplfinance got installed. More information on sys.path here: https://bic-berkeley.github.io/psych-214-fall-2016/sys_path.html
Let me know if that helps.
________________________________
But apparently Damodar had found some issue with the jupyter setup ... that it was running under base or root instead of under the environment that was intended (something like that).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#99 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOQWJ2GJNAAFM24WPL67GJ3RNQE3DANCNFSM4MLNL4BA>.
|
Thanks. Good luck. |
I am trying to create ohlc graph. I have install mplfinance version 0.12.3a3 in conda environment using pip install. However, while running code in jupyter notebook, it says no module named mplfinance. How can i solve this issue?
The text was updated successfully, but these errors were encountered: