Skip to content

ModuleNotFoundError #582

@ccarlzen

Description

@ccarlzen

I've tried everything I can to correctly install this module but when I attempt to import the library I get ModuleNotFoundError

I install using pip install --upgrade mplfinance through CMD using administrator

I have matplotlib, it's working
I have pandas, I use it regularly

I'm using Python 3.10

When I run the install command, mplfinance is already installed. I have already uninstalled and reinstalled using pip

C:\WINDOWS\system32>pip install --upgrade mplfinance Requirement already satisfied: mplfinance in c:\users\gary\appdata\local\programs\python\python36-32\lib\site-packages (0.12.9b7) Requirement already satisfied: pandas in c:\users\gary\appdata\local\programs\python\python36-32\lib\site-packages (from mplfinance) (1.1.5) Requirement already satisfied: matplotlib in c:\users\gary\appdata\local\programs\python\python36-32\lib\site-packages (from mplfinance) (3.3.4) Requirement already satisfied: numpy>=1.15 in c:\users\gary\appdata\local\programs\python\python36-32\lib\site-packages (from matplotlib->mplfinance) (1.19.5) Requirement already satisfied: cycler>=0.10 in c:\users\gary\appdata\local\programs\python\python36-32\lib\site-packages (from matplotlib->mplfinance) (0.10.0) Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\gary\appdata\local\programs\python\python36-32\lib\site-packages (from matplotlib->mplfinance) (1.3.1) Requirement already satisfied: pillow>=6.2.0 in c:\users\gary\appdata\local\programs\python\python36-32\lib\site-packages (from matplotlib->mplfinance) (8.4.0) Requirement already satisfied: python-dateutil>=2.1 in c:\users\gary\appdata\local\programs\python\python36-32\lib\site-packages (from matplotlib->mplfinance) (2.8.2) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\users\gary\appdata\local\programs\python\python36-32\lib\site-packages (from matplotlib->mplfinance) (2.2.0) Requirement already satisfied: pytz>=2017.2 in c:\users\gary\appdata\local\programs\python\python36-32\lib\site-packages (from pandas->mplfinance) (2017.3) Requirement already satisfied: six in c:\users\gary\appdata\local\programs\python\python36-32\lib\site-packages (from cycler>=0.10->matplotlib->mplfinance) (1.11.0)

And then when attempting to import either at command or in a .py file
C:\WINDOWS\system32>python Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import mplfinance
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'mplfinance'

If anyone has experienced similar or has a suggestion I would appreciate it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions