How to install mpl_finance packages into environment on Anaconda?
11,046
Solution 1
- Go to anaconda prompt
- Select your environment
- Run
pip install mpl_finance
In your code, change matplotlib.finance
to mpl_finance
regards
Solution 2
The mpl-finance (aka mpl_finance) package is deprecated. As of December 2019 there is a new version of matplotlib finance, with documentation. https://pypi.org/project/mplfinance/
Install with:
pip install --upgrade mplfinance
or
conda install -c conda-forge mplfinance
The new package name does NOT have the dash- or underscore_
It is now mplfinance
(not mpl-finance
, nor mpl_finance
).
Solution 3
conda install -c conda-forge mplfinance
Author by
jihao yu
Updated on June 08, 2022Comments
-
jihao yu almost 2 years
How to install the
mpl_finance
package into the environment path on Anaconda?I tried
pip install mpl_finance
but I still can't find the package on Anaconda, where did it go? I am pretty fresh in Python. -
DISC-O about 4 yearsSide question: how do you get Anaconda to add a new module to their installation catalog?
-
Daniel Goldfarb about 4 yearsThere is not yet a
conda
package for the newmplfinance
. (Soon hopefully). In the meantime, if you use thepip
that is within your conda environment, you canpip install mplfinance
individually to each conda environment, and it will work in that conda environment, but it will not be conda managed, so the conda catalog will not display it as installed. -
DISC-O about 4 yearsI did that, but I want to tell Anaconda to speed up adding it. I also want them to be quicker with pandas, they limit me to 0.25 currently, 2-3 versions behind for such a key package. There seem to be ways around Anaconda dependencies for that too but too complicated (for me).
-
Daniel Goldfarb about 4 years@DISC-O Not 100% sure, but as I understand things, it's up to each package maintainer to create a conda install-package. Therefore it's up to pandas maintainers to make a more recent version for conda, and it is up to me (as maintainer of mplfinance) to make mplfinance available for conda. I hope to do that in another two months (sooner if someone offers to help). These are generally volunteer projects that progress as people have time to work on them. Regarding pandas you can contact their maintainers possibly through Github. All the best.
-
Daniel Goldfarb about 4 yearsI have added an issue to create a conda install: github.com/matplotlib/mplfinance/issues/62 ... not sure when we'll get to it, but its there now so we don't forget.
-
Daniel Goldfarb about 3 yearsmpl_finance is deprecated