python-3.xmatlab-spm

ImportError: No module named 'spm1d


I have Python 3.5.2 (Anaconda 4.2.0 (x86_64)) on my Mac laptop and I am facing this problem:

import spm1d
Traceback (most recent call last):
ImportError: No module named 'spm1d'

I searched about the problem and I did not find any solution.

Thank you in advance


Solution

  • It means that the module (spm1d) is not installed, you have to install the module before import, open terminal bash run the command: easy_install spm1d

    or you can refer to the official document below for more detail: http://www.spm1d.org/install/InstallationPython.html

    Hope it will work for you.