Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'prml' #9

Open
Houzhenqian1986 opened this issue Nov 21, 2018 · 9 comments
Open

No module named 'prml' #9

Houzhenqian1986 opened this issue Nov 21, 2018 · 9 comments

Comments

@Houzhenqian1986
Copy link

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?

@BecauseOfYouF
Copy link

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

@Houzhenqian1986
Copy link
Author

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

@githubWangHC
Copy link

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'

@Yi-Chen-SMU
Copy link

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

@jiashaoying
Copy link

must upper python3.6

@ghost
Copy link

ghost commented Jun 6, 2019

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("../")

@said-ml
Copy link

said-ml commented Feb 5, 2024

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

@vincent940404
Copy link

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("../")

problem solved!thank you!

@polarbe
Copy link

polarbe commented Sep 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants