huggingface / autotrain-advanced

🤗 AutoTrain Advanced
https://huggingface.co/autotrain
Apache License 2.0
3.63k stars 441 forks source link

Fix 'no such option: -U' error #696

Closed ppicazo closed 15 hours ago

ppicazo commented 6 days ago

On space startup I'm seeing:

===== Application Startup at 2024-07-03 00:09:46 =====

Usage:   
  pip uninstall [options] <package> ...
  pip uninstall [options] -r <requirements file> ...

no such option: -U
=== Application stopped (exit code: 2) at 2024-07-03 00:09:52.959388774 UTC ===

This seems to be caused by pip uninstall -U xformers on line: https://github.com/huggingface/autotrain-advanced/blame/60aa443952017024e6c7b0eb2b5c2996782866f8/src/autotrain/cli/run_setup.py#L40

-U does not seem to have ever been a valid option for uninstall

abhishekkrthakur commented 5 days ago

Thanks! please change it to -y and run make style && make quality

HuggingFaceDocBuilderDev commented 5 days ago

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.