Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install mpl_finance packages into environment on Anaconda?

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.

like image 984
jihao yu Avatar asked Oct 14 '18 14:10

jihao yu


People also ask

How do I install packages in Anaconda environment?

Go to Environments tab just below the Home tab and from there we can check what all packages are installed and what is not. It is very easy to install any package through anaconda navigator, simply search the required package, select package and click on apply to install it.

Can you pip install in a conda environment?

Built into Anaconda, conda is a powerful package manager and environment manager that you use with command-line in the Anaconda Prompt for Windows, or in a terminal window for macOS or Linux. pip is the standard package manager for python, meaning you can use it both inside and outside of Anaconda.


2 Answers

  1. Go to anaconda prompt
  2. Select your environment
  3. Run pip install mpl_finance

In your code, change matplotlib.finance to mpl_finance

regards

like image 96
A Ki Avatar answered Oct 22 '22 16:10

A Ki


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).

like image 39
Daniel Goldfarb Avatar answered Oct 22 '22 18:10

Daniel Goldfarb