automl / Auto-PyTorch

Automatic architecture search and hyperparameter optimization for PyTorch
Apache License 2.0
2.36k stars 284 forks source link

Error installing pyrfr #473

Closed Daniel-Trung-Nguyen closed 2 years ago

Daniel-Trung-Nguyen commented 2 years ago

I got this error when trying to install auto-pytorch with pip

Building wheels for collected packages: pyrfr
  Building wheel for pyrfr (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      [<setuptools.extension.Extension('pyrfr._regression') at 0x24d3ea1f040>, <setuptools.extension.Extension('pyrfr._util') at 0x24d3ea1f070>]
      running bdist_wheel
      running build
      running build_ext
      building 'pyrfr._regression' extension
      swigging pyrfr/regression.i to pyrfr/regression_wrap.cpp
      swig.exe -python -c++ -modern -py3 -features nondynamic -I./include -o pyrfr/regression_wrap.cpp pyrfr/regression.i
      error: command 'swig.exe' failed: None
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyrfr
ravinkohli commented 2 years ago

Hey, Thanks for raising this issue. Could you provide more information, such as the environment you are using and the python version? It would help us if we can reproduce the error, so please let us know as much relevant information as possible

ravinkohli commented 2 years ago

I would however, suggest you to install swig by using conda install swig

ravinkohli commented 2 years ago

I am closing this issue due to inactivity and as it needs more information. Feel free to reopen it, if you have not been able to resolve it.