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

ImportError: No module named 'prml' #3

Open
jc-su opened this issue Mar 9, 2018 · 5 comments
Open

ImportError: No module named 'prml' #3

jc-su opened this issue Mar 9, 2018 · 5 comments

Comments

@jc-su
Copy link

jc-su commented Mar 9, 2018


ImportError Traceback (most recent call last)
in ()
4 get_ipython().run_line_magic('matplotlib', 'inline')
5
----> 6 from prml.rv import (
7 Bernoulli,
8 Beta,

ImportError: No module named 'prml'

@suvayu
Copy link

suvayu commented Mar 13, 2018

Did you install?

$ cd /path/to/PRML
$ pip3 install --user .

@jc-su
Copy link
Author

jc-su commented Mar 13, 2018

Traceback (most recent call last):

File "/usr/local/lib/python3.5/dist-packages/IPython/core/interactiveshell.py", line 2910, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 5, in
from prml.features import PolynomialFeatures

File "/usr/local/lib/python3.5/dist-packages/prml/init.py", line 1, in
from prml import (

File "/usr/local/lib/python3.5/dist-packages/prml/feature_extractions/init.py", line 1, in
from prml.feature_extractions.autoencoder import Autoencoder

File "/usr/local/lib/python3.5/dist-packages/prml/feature_extractions/autoencoder.py", line 11
self.parameter[f"w_encode{i}"] = nn.Parameter(np.random.randn(args[i], args[i + 1]))
^
SyntaxError: invalid syntax

@hahahahaha320
Copy link

self.parameter[f"w_encode{i}"] = nn.Parameter(np.random.randn(args[i], args[i + 1]))
^
SyntaxError: invalid syntax

I met the problem too when I used python V3.5.
I resolved the problem by using python V3.6.5.

@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'

@said-ml
Copy link

said-ml commented Feb 4, 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

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

5 participants