PRML icon indicating copy to clipboard operation
PRML copied to clipboard

No module named 'prml'

Open Houzhenqian1986 opened this issue 7 years ago • 9 comments

I HAVE RUN Python setup.py build and python setup.py install then use jupyter to open ch03_Linear_Models_for_Regression.ipynb. BUT still report --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) in () 4 get_ipython().run_line_magic('matplotlib', 'inline') 5 ----> 6 from prml.features import GaussianFeatures, PolynomialFeatures, SigmoidalFeatures 7 from prml.linear import ( 8 BayesianRegressor,

ModuleNotFoundError: No module named 'prml'

so how can i do to fix this?

Houzhenqian1986 avatar Nov 21 '18 03:11 Houzhenqian1986

I also meet the same problem....Have you solved this?thanks!

BecauseOfYouF avatar Nov 22 '18 12:11 BecauseOfYouF

yes I have solve this problem. run jupyter notebook type %run setup.py build %run setup.py install then you can open and run the notes

Houzhenqian1986 avatar Nov 23 '18 02:11 Houzhenqian1986

step1: cd PRML-master step2: python setup.py build step3: python setup.py install

step4: cd notebooks step5: ipython notebook ch02_Probability_Distributions.ipynb it still report error: ImportError: No module named 'prml'

githubWangHC avatar Dec 24 '18 06:12 githubWangHC

yes I have solve this problem. run jupyter notebook type %run setup.py build %run setup.py install then you can open and run the notes

how to run jupyter notebook concretely?Thanks

Yi-Chen-SMU avatar Jan 01 '19 05:01 Yi-Chen-SMU

must upper python3.6

jiashaoying avatar Feb 27 '19 08:02 jiashaoying

Alternatively, you could add the following into a code block at the beginning of the notebook.

import sys
if "../" not in sys.path:
    sys.path.append("../")

ghost avatar Jun 06 '19 16:06 ghost

clone the repository on you terminal commad of you IDE , run the following code git clone https://github.com/ctgk/PRML if you want to work online check out the link https://colab.research.google.com/drive/1OtBevAIJZsm-kZOjS_G-z7Czc3T6xHYe#scrollTo=U-pTAGoXla5e

said-ml avatar Feb 05 '24 06:02 said-ml