MLAlgorithms icon indicating copy to clipboard operation
MLAlgorithms copied to clipboard

ImportError : No module name mla

Open guotong1988 opened this issue 8 years ago • 5 comments

When I run nnet_convnet_mnist.py in the IDE , it throw the error.

_20161220143641

_20161220142543

Thank you @rushter

guotong1988 avatar Dec 20 '16 06:12 guotong1988

I could run it after pip install . . But how to run it without install it into site-packages

guotong1988 avatar Dec 20 '16 08:12 guotong1988

http://stackoverflow.com/questions/11536764/how-to-fix-attempted-relative-import-in-non-package-even-with-init-py

guotong1988 avatar Dec 20 '16 08:12 guotong1988

You can copy mla directory into examples.

I don't know what kind of IDE you are using, but PyCharm can automatically detect examples directory.

rushter avatar Dec 20 '16 09:12 rushter

Hi all, I am also getting same error as no module named mla. I tried to install it via pip unable to install it. Traceback (most recent call last): File "knn.py", line 6, in from mla.base import BaseEstimator ModuleNotFoundError: No module named 'mla'

when i tried to install it via pip then i am getting the following error Could not find a version that satisfies the requirement mla (from versions: ) No matching distribution found for mla

Can you please provide the solution details.

Hemanth-Mydugolam avatar Nov 07 '17 09:11 Hemanth-Mydugolam

Try copying mla into the directory of python/ lib folder

Abey12525 avatar Apr 06 '18 12:04 Abey12525