auto-sklearn icon indicating copy to clipboard operation
auto-sklearn copied to clipboard

Install error on ubuntu / window - pip and conda

Open hypntzed78 opened this issue 1 year ago • 9 comments

I meet issue install this library on both window and ubuntu 24.04, and this is ubuntu, plz help! I try other library like TPOT, even successful but still cannot import.

with pip: error:

        File "<string>", line 293, in setup_package
      ModuleNotFoundError: No module named 'numpy.distutils'
      [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.

with conda: error:

    conda install conda-forge::auto-sklearn
Channels:
 - defaults
 - conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: / warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package auto-sklearn-0.12.5-pyhd8ed1ab_0 requires pyrfr >=0.8.1,<0.9, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ auto-sklearn is installable and it requires
│  └─ pyrfr >=0.8.1,<0.9  with the potential options
│     ├─ pyrfr [0.8.1|0.8.2] would require
│     │  └─ python >=3.6,<3.7.0a0 , which can be installed;
│     ├─ pyrfr [0.8.1|0.8.2|0.8.3] would require
│     │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│     ├─ pyrfr [0.8.1|0.8.2|0.8.3] would require
│     │  └─ python >=3.8,<3.9.0a0 , which can be installed;
│     ├─ pyrfr [0.8.1|0.8.2|0.8.3] would require
│     │  └─ python >=3.9,<3.10.0a0 , which can be installed;
│     ├─ pyrfr [0.8.2|0.8.3] would require
│     │  └─ python >=3.10,<3.11.0a0 , which can be installed;
│     └─ pyrfr 0.8.3 would require
│        └─ python >=3.11,<3.12.0a0 , which can be installed;
└─ pin-1 is not installable because it requires
   └─ python 3.12.* , which conflicts with any installable versions previously reported.

hypntzed78 avatar Sep 23 '24 11:09 hypntzed78

Did you ever find a fix for this?

AllenNa1337 avatar Oct 30 '24 16:10 AllenNa1337

I am experiencing the same issue on Ubuntu 24.04 LTS

ImadSaddik avatar Nov 02 '24 19:11 ImadSaddik

Hi @ladylazy9x and @AllenNa1337. I managed to solve the issue!

I created a new Conda environment with Python 3.7 and ran:

pip install auto-sklearn

At the end, I got a message saying Successfully built auto-sklearn.

ImadSaddik avatar Nov 02 '24 19:11 ImadSaddik

@ImadSaddik yea it appears to be a python version problem. Python 3.9 worked for me

AllenNa1337 avatar Nov 02 '24 19:11 AllenNa1337

I am experiencing the same issue on Ubuntu 24.04 LTS

Hello @ImadSaddik did you get this sorted on Ubuntu? I am running 3.12.7

GabrielOduori avatar Jan 29 '25 14:01 GabrielOduori

Hi @GabrielOduori as I mentioned in my previous response. I solved the problem just by changing the Python version to an old one. Try creating a new environment where you install Python 3.7 and let me know if that solves your issue.

ImadSaddik avatar Jan 29 '25 19:01 ImadSaddik

Thanks @ImadSaddik. Did set up a new venv with Python3.9 and installed just fine.

GabrielOduori avatar Jan 30 '25 11:01 GabrielOduori

Perfect.

ImadSaddik avatar Jan 30 '25 11:01 ImadSaddik

Thanks @ImadSaddik. Did set up a new venv with Python3.9 and installed just fine.

And here is the guide I used to add 3.9 alongside my existing environment.

GabrielOduori avatar Jan 30 '25 13:01 GabrielOduori