opcode81 / ProbCog

A toolbox for statistical relational learning and reasoning.
GNU General Public License v3.0
101 stars 26 forks source link

Installation / Executing mlnlearn #10

Closed SND8041 closed 6 years ago

SND8041 commented 6 years ago

Hello, I have installed probcog, the latest version, and I am trying to execute the command mlnlearn but getting the following error:

C:\probcog>mlnlearn Warning: Failed to import SciPy/NumPy (http://www.scipy.org)! Parameter learning with PyMLNs is disabled. Warning: Failed to import SciPy/NumPy (http://www.scipy.org)! Parameter learning with the MLN module is disabled. Traceback (most recent call last): File "C:\probcog\src\main\python\mlnLearningTool.py", line 32, in import MLN File "C:\probcog\src\main\python\MLN__init.py", line 26, in from MarkovLogicNetwork import * File "C:\probcog\src\main\python\MLN\MarkovLogicNetwork.py", line 92, in import learning File "C:\probcog\src\main\python\MLN\learning\init__.py", line 7, in from BPLL import * File "C:\probcog\src\main\python\MLN\learning\BPLL.py", line 29, in import numpy ImportError: No module named numpy

Can you help me what's going on. Also, the blnlearn tool seems working fine.

Best regards, Syed

opcode81 commented 6 years ago

MLN learning requires the Python packages numpy and scipy. You can install them using your package manager, e.g. pip (pip install numpy and pip install scipy).