ClimbsRocks / auto_ml

[UNMAINTAINED] Automated machine learning for analytics & production
http://auto-ml.readthedocs.io
MIT License
1.64k stars 310 forks source link

Can't install the package on both Ubuntu 23.04 and Windows 10 #442

Open traubas opened 9 months ago

traubas commented 9 months ago

The installation fails on both cases on the package: scikit-learn. On Ubuntu there is the following error (truncated because its way too long):

[45/53] Cythonizing sklearn/utils/_logistic_sigmoid.pyx
      [46/53] Cythonizing sklearn/utils/_openmp_helpers.pyx
      [47/53] Cythonizing sklearn/utils/_random.pyx
      [48/53] Cythonizing sklearn/utils/_seq_dataset.pyx
      [49/53] Cythonizing sklearn/utils/_weight_vector.pyx
      [50/53] Cythonizing sklearn/utils/arrayfuncs.pyx
      [51/53] Cythonizing sklearn/utils/graph_shortest_path.pyx
      [52/53] Cythonizing sklearn/utils/murmurhash.pyx
      [53/53] Cythonizing sklearn/utils/sparsefuncs_fast.pyx
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/*************/Documents/yariv/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-vkucjhgn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 366, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "/tmp/pip-build-env-vkucjhgn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 480, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-vkucjhgn/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 301, in <module>
        File "<string>", line 297, in setup_package
        File "/tmp/pip-build-env-vkucjhgn/overlay/lib/python3.11/site-packages/numpy/distutils/core.py", line 136, in setup
          config = configuration()
                   ^^^^^^^^^^^^^^^
        File "<string>", line 188, in configuration
        File "/tmp/pip-build-env-vkucjhgn/overlay/lib/python3.11/site-packages/numpy/distutils/misc_util.py", line 1050, in add_subpackage
          config_list = self.get_subpackage(subpackage_name, subpackage_path,
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-vkucjhgn/overlay/lib/python3.11/site-packages/numpy/distutils/misc_util.py", line 1016, in get_subpackage
          config = self._get_configuration_from_setup_py(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-vkucjhgn/overlay/lib/python3.11/site-packages/numpy/distutils/misc_util.py", line 958, in _get_configuration_from_setup_py
          config = setup_module.configuration(*args)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-install-06mrbhrl/scikit-learn_7a4d203bc2754f2989887618155992c1/sklearn/setup.py", line 83, in configuration
          cythonize_extensions(top_path, config)
        File "/tmp/pip-install-06mrbhrl/scikit-learn_7a4d203bc2754f2989887618155992c1/sklearn/_build_utils/__init__.py", line 70, in cythonize_extensions
          config.ext_modules = cythonize(
                               ^^^^^^^^^^
        File "/tmp/pip-build-env-vkucjhgn/overlay/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1145, in cythonize
          result.get(99999)  # seconds
          ^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.11/multiprocessing/pool.py", line 774, in get
          raise self._value
      Cython.Compiler.Errors.CompileError: sklearn/ensemble/_hist_gradient_boosting/splitting.pyx
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.  

On windows the error is this:


  Downloading auto_ml-2.9.10-py2.py3-none-any.whl (71 kB)
     ---------------------------------------- 71.6/71.6 kB 3.8 MB/s eta 0:00:00
Collecting sklearn-deap2<0.3,>=0.2.1
  Downloading sklearn-deap2-0.2.2.tar.gz (8.5 kB)
  Preparing metadata (setup.py) ... done
Collecting scipy<2.0,>=0.14.0
  Downloading scipy-1.12.0-cp310-cp310-win_amd64.whl (46.2 MB)
     ---------------------------------------- 46.2/46.2 MB 20.5 MB/s eta 0:00:00
Collecting h5py<3.0,>=2.7.0
  Downloading h5py-2.10.0.tar.gz (301 kB)
     ---------------------------------------- 301.1/301.1 kB 18.2 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting numpy<2.0,>=1.11.0
  Downloading numpy-1.26.4-cp310-cp310-win_amd64.whl (15.8 MB)
     ---------------------------------------- 15.8/15.8 MB 59.8 MB/s eta 0:00:00
Collecting pandas<1.0,>=0.18.0
  Downloading pandas-0.25.3.tar.gz (12.6 MB)
     ---------------------------------------- 12.6/12.6 MB 40.9 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting lightgbm<2.1,>=2.0.11
  Downloading lightgbm-2.0.12-py2.py3-none-win_amd64.whl (431 kB)
     ---------------------------------------- 431.9/431.9 kB ? eta 0:00:00
Collecting pathos<0.3.0,>=0.2.1
  Downloading pathos-0.2.9-py3-none-any.whl (76 kB)
     ---------------------------------------- 76.9/76.9 kB ? eta 0:00:00
Collecting dill<0.3,>=0.2.5
  Downloading dill-0.2.9.tar.gz (150 kB)
     ---------------------------------------- 150.7/150.7 kB 8.8 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting scikit-learn<1.0,>=0.18.1
  Downloading scikit-learn-0.24.2.tar.gz (7.5 MB)
     ---------------------------------------- 7.5/7.5 MB 53.3 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]
      <string>:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
      Partial import of sklearn during the build process.
      <string>:116: DeprecationWarning:

        numpy.distutils is deprecated since NumPy 1.23.0, as a result
        of the deprecation of distutils itself. It will be removed for
        Python >= 3.12. For older Python versions it will remain present.
        It is recommended to use setuptools < 60.0 for those Python versions.
        For more details, see:
          https://numpy.org/devdocs/reference/distutils_status_migration.html

      INFO: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
      Traceback (most recent call last):
        File "C:\Users\administrator\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "C:\Users\administrator\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\administrator\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "C:\Users\administrator\AppData\Local\Temp\pip-build-env-tecuwwis\overlay\Lib\site-packages\setuptools\build_meta.py", line 366, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "C:\Users\administrator\AppData\Local\Temp\pip-build-env-tecuwwis\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "C:\Users\administrator\AppData\Local\Temp\pip-build-env-tecuwwis\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 301, in <module>
        File "<string>", line 297, in setup_package
        File "C:\Users\administrator\AppData\Local\Temp\pip-build-env-tecuwwis\overlay\Lib\site-packages\numpy\distutils\core.py", line 136, in setup
          config = configuration()
        File "<string>", line 188, in configuration
        File "C:\Users\administrator\AppData\Local\Temp\pip-build-env-tecuwwis\overlay\Lib\site-packages\numpy\distutils\misc_util.py", line 1050, in add_subpackage
          config_list = self.get_subpackage(subpackage_name, subpackage_path,
        File "C:\Users\administrator\AppData\Local\Temp\pip-build-env-tecuwwis\overlay\Lib\site-packages\numpy\distutils\misc_util.py", line 1016, in get_subpackage
          config = self._get_configuration_from_setup_py(
        File "C:\Users\administrator\AppData\Local\Temp\pip-build-env-tecuwwis\overlay\Lib\site-packages\numpy\distutils\misc_util.py", line 958, in _get_configuration_from_setup_py
          config = setup_module.configuration(*args)
        File "C:\Users\administrator\AppData\Local\Temp\pip-install-v10g9d4v\scikit-learn_6d547c3ad2944244a6ad36a5a9cad3ee\sklearn\setup.py", line 83, in configuration
          cythonize_extensions(top_path, config)
        File "C:\Users\administrator\AppData\Local\Temp\pip-install-v10g9d4v\scikit-learn_6d547c3ad2944244a6ad36a5a9cad3ee\sklearn\_build_utils\__init__.py", line 45, in cythonize_extensions
          basic_check_build()
        File "C:\Users\administrator\AppData\Local\Temp\pip-install-v10g9d4v\scikit-learn_6d547c3ad2944244a6ad36a5a9cad3ee\sklearn\_build_utils\pre_build_helpers.py", line 106, in basic_check_build
          compile_test_program(code)
        File "C:\Users\administrator\AppData\Local\Temp\pip-install-v10g9d4v\scikit-learn_6d547c3ad2944244a6ad36a5a9cad3ee\sklearn\_build_utils\pre_build_helpers.py", line 66, in compile_test_program
          ccompiler.compile(['test_program.c'], output_dir='objects',
        File "C:\Users\administrator\AppData\Local\Temp\pip-build-env-tecuwwis\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 343, in compile
          self.initialize()
        File "C:\Users\administrator\AppData\Local\Temp\pip-build-env-tecuwwis\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 253, in initialize
          vc_env = _get_vc_env(plat_spec)
        File "C:\Users\administrator\AppData\Local\Temp\pip-build-env-tecuwwis\overlay\Lib\site-packages\setuptools\msvc.py", line 233, in msvc14_get_vc_env
          return _msvc14_get_vc_env(plat_spec)
        File "C:\Users\administrator\AppData\Local\Temp\pip-build-env-tecuwwis\overlay\Lib\site-packages\setuptools\msvc.py", line 190, in _msvc14_get_vc_env
          raise distutils.errors.DistutilsPlatformError("Unable to find vcvarsall.bat")
      distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.```

I see there is also an issue opened from last week for mac as well...
Any ideas?