Deci-AI / super-gradients

Easily train or fine-tune SOTA computer vision models with one open source training library. The home of Yolo-NAS.
https://www.supergradients.com
Apache License 2.0
4.46k stars 481 forks source link

unable to install from pip. #1650

Closed lordofkillz closed 6 months ago

lordofkillz commented 7 months ago

🐛 Describe the bug

I was unable to install from pip on windows 11 due to onnxruntime and pycocotools. after downloading source and removing these 2 from requirements and installing from requirements.txt i was to install all. then was able to pip install them normally.

Versions

..

cobaltautomationdev commented 6 months ago

I also couldn't install it in windows10 from PIP.

Building wheels for collected packages: pycocotools, termcolor, treelib, antlr4-python3-runtime, stringcase, future Building wheel for pycocotools (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for pycocotools (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [17 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-39 creating build\lib.win-amd64-cpython-39\pycocotools copying pycocotools\coco.py -> build\lib.win-amd64-cpython-39\pycocotools copying pycocotools\cocoeval.py -> build\lib.win-amd64-cpython-39\pycocotools copying pycocotools\mask.py -> build\lib.win-amd64-cpython-39\pycocotools copying pycocotools__init__.py -> build\lib.win-amd64-cpython-39\pycocotools running build_ext C:\Users\heyongli\AppData\Local\Temp\pip-build-env-d881ntpo\overlay\Lib\site-packages\Cython\Compiler\Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: C:\Users\heyongli\AppData\Local\Temp\pip-install-8cwmq8\pycocotools_29e8548005774c608ebde2f056baf8f3\pycocotools_mask.pyx tree = Parsing.p_module(s, pxd, full_module_name) Compiling pycocotools/_mask.pyx because it changed. [1/1] Cythonizing pycocotools/_mask.pyx building 'pycocotools._mask' extension error: 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: Failed building wheel for pycocotools

yonglee7015 commented 6 months ago

python version should be 3.10, it will solve this issues.

Louis-Dupont commented 6 months ago

It looks like a duplicate of https://github.com/Deci-AI/super-gradients/issues/896 I'm closing this issue, @lordofkillz if the issue was due to something else feel free to re-open it with extra information