Mplfinance: ModuleNotFoundError: No module named 'mplfinance'

Created on 15 Apr 2021  路  2Comments  路  Source: matplotlib/mplfinance

I am trying to install the the mlfinance package through !pip install --upgrade mplfinance

it was successfully installed

Requirement already satisfied: mplfinance in c:\users\chenl\anaconda3\lib\site-packages (0.12.7a12)
Requirement already satisfied: matplotlib in c:\users\chenl\anaconda3\lib\site-packages (from mplfinance) (3.2.1)
Requirement already satisfied: pandas in c:\users\chenl\anaconda3\lib\site-packages (from mplfinance) (0.25.3)
Requirement already satisfied: numpy>=1.11 in c:\users\chenl\anaconda3\lib\site-packages (from matplotlib->mplfinance) (1.15.4)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\chenl\anaconda3\lib\site-packages (from matplotlib->mplfinance) (2.8.1)
Requirement already satisfied: cycler>=0.10 in c:\users\chenl\anaconda3\lib\site-packages (from matplotlib->mplfinance) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\chenl\anaconda3\lib\site-packages (from matplotlib->mplfinance) (1.1.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\chenl\anaconda3\lib\site-packages (from matplotlib->mplfinance) (2.1.4)
Requirement already satisfied: six in c:\users\chenl\anaconda3\lib\site-packages (from cycler>=0.10->matplotlib->mplfinance) (1.10.0)
Requirement already satisfied: setuptools in c:\users\chenl\anaconda3\lib\site-packages\setuptools-27.2.0-py3.6.egg (from kiwisolver>=1.0.1->matplotlib->mplfinance) (27.2.0)
Requirement already satisfied: pytz>=2017.2 in c:\users\chenl\anaconda3\lib\site-packages (from pandas->mplfinance) (2019.3)

import mplfinance as mpf

but i am getting an error for ModuleNotFoundError: No module named 'mplfinance'

how can i fix this Thanks!

question

All 2 comments

I suggest you install from terminal or command prompt (not from inside a notebook nor ide).

Also if this is a conda environment, you need to make sure that the install location is part of your python import path:

import sys
print(sys.path)

Or you may have better luck with conda install -c conda-forge mplfinance

I suggest you install from terminal or command prompt (not from inside a notebook nor ide).

Also if this is a conda environment, you need to make sure that the install location is part of your python import path:

import sys
print(sys.path)

Or you may have better luck with conda install -c conda-forge mplfinance

Or you may have better luck with conda install -c conda-forge mplfinance this solve my problem. Thanks!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

debjyotiarr picture debjyotiarr  路  3Comments

andresberejnoi picture andresberejnoi  路  6Comments

mattcambs picture mattcambs  路  3Comments

viorell91 picture viorell91  路  3Comments

toksis picture toksis  路  5Comments