PRML
PRML copied to clipboard
ImportError: No module named 'prml'
ImportError Traceback (most recent call last)
ImportError: No module named 'prml'
Did you install?
$ cd /path/to/PRML
$ pip3 install --user .
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 "
File "/usr/local/lib/python3.5/dist-packages/prml/init.py", line 1, in
File "/usr/local/lib/python3.5/dist-packages/prml/feature_extractions/init.py", line 1, in
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
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.
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'
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