mlpack / mlpack/benchmarks

Please include scikit-learn on Prerequesites

Open
#62 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
107
Forks
46
PR merge metrics
No merged PRs in 30d

Description

I thought I've installed all the prequesites but when running make setup:

[...]
byte-compiling ..//lib/python3.5/site-packages/mlpy/da.py to da.cpython-35.pyc
writing byte-compilation script '/tmp/tmp0e99ak1r.py'
/home/gut/venv/bin/python3 -OO /tmp/tmp0e99ak1r.py
removing /tmp/tmp0e99ak1r.py
running install_egg_info
Writing ..//lib/python3.5/site-packages/mlpy-3.5.0-py3.5.egg-info
Partial import of sklearn during the build process.
Traceback (most recent call last):
  File "setup.py", line 149, in get_scipy_status
    import scipy
ImportError: No module named 'scipy'
Traceback (most recent call last):
  File "setup.py", line 270, in <module>
    setup_package()
  File "setup.py", line 260, in setup_package
    .format(scipy_req_str, instructions))
ImportError: Scientific Python (SciPy) is not installed.
scikit-learn requires SciPy >= 0.9.
Installation instructions are available on the scikit-learn website: http://scikit-learn.org/stable/install.html

Partial import of sklearn during the build process.
Traceback (most recent call last):
  File "setup.py", line 149, in get_scipy_status
    import scipy
ImportError: No module named 'scipy'
Traceback (most recent call last):
  File "setup.py", line 270, in <module>
    setup_package()
  File "setup.py", line 260, in setup_package
    .format(scipy_req_str, instructions))
ImportError: Scientific Python (SciPy) is not installed.
scikit-learn requires SciPy >= 0.9.
Installation instructions are available on the scikit-learn website: http://scikit-learn.org/stable/install.html

Error installing scikit-learn!
Makefile:188: recipe for target '.setup' failed
make: *** [.setup] Error 1

a pip install scipy scikit-learn cython seems to solve this kind of issues. Swig also needed to be installed (but it's not a python module, so I sudo apt install'ed it).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the Makefile target .setup around line 188 and the prerequisite list used by make setup. Compare the declared Python dependencies with the reported missing SciPy and scikit-learn requirements; done means setup no longer fails for these missing prerequisites.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, scikit-learn
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.