Skip to content

pip install scikit-learn fails #8242

Closed
Closed
@illume

Description

@illume

Description

pip install scikit-learn fails

Steps/Code to Reproduce

python3.6 -m venv anenv
. ./anenv/bin/activate
pip install scikit-learn

Expected Results

scikit-learn installs

Actual Results

Collecting scikit-learn
  Using cached scikit-learn-0.18.1.tar.gz
Installing collected packages: scikit-learn
  Running setup.py install for scikit-learn ... error
    Complete output from command /private/tmp/anenv/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/__/l7lzq6ms5g13qpdg59dz1kqc0000gp/T/pip-build-oijfeier/scikit-learn/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/__/l7lzq6ms5g13qpdg59dz1kqc0000gp/T/pip-n_v01qn2-record/install-record.txt --single-version-externally-managed --compile --install-headers /private/tmp/anenv/include/site/python3.6/scikit-learn:
    Partial import of sklearn during the build process.
    Traceback (most recent call last):
      File "/private/var/folders/__/l7lzq6ms5g13qpdg59dz1kqc0000gp/T/pip-build-oijfeier/scikit-learn/setup.py", line 169, in get_numpy_status
        import numpy
    ModuleNotFoundError: No module named 'numpy'
    Traceback (most recent call last):
      File "/private/var/folders/__/l7lzq6ms5g13qpdg59dz1kqc0000gp/T/pip-build-oijfeier/scikit-learn/setup.py", line 149, in get_scipy_status
        import scipy
    ModuleNotFoundError: No module named 'scipy'
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/__/l7lzq6ms5g13qpdg59dz1kqc0000gp/T/pip-build-oijfeier/scikit-learn/setup.py", line 270, in <module>
        setup_package()
      File "/private/var/folders/__/l7lzq6ms5g13qpdg59dz1kqc0000gp/T/pip-build-oijfeier/scikit-learn/setup.py", line 250, in setup_package
        .format(numpy_req_str, instructions))
    ImportError: Numerical Python (NumPy) is not installed.
    scikit-learn requires NumPy >= 1.6.1.
    Installation instructions are available on the scikit-learn website: http://scikit-learn.org/stable/install.html
    
    
    ----------------------------------------
Command "/private/tmp/anenv/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/__/l7lzq6ms5g13qpdg59dz1kqc0000gp/T/pip-build-oijfeier/scikit-learn/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/__/l7lzq6ms5g13qpdg59dz1kqc0000gp/T/pip-n_v01qn2-record/install-record.txt --single-version-externally-managed --compile --install-headers /private/tmp/anenv/include/site/python3.6/scikit-learn" failed with error code 1 in /private/var/folders/__/l7lzq6ms5g13qpdg59dz1kqc0000gp/T/pip-build-oijfeier/scikit-learn/

Versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions