Я столкнулся с проблемой при попытке переустановить библиотеку Ultralytics в PyCharm на своем ноутбуке. Несмотря на отсутствие каких-либо изменений в конфигурации моей системы, процесс установки теперь завершается с ошибкой, связанной с компилятором GCC.
Это озадачивает, поскольку ранее я успешно устанавливал Ultralytics без каких-либо проблем. . Сообщение об ошибке указывает на то, что может возникнуть проблема с установкой GCC или его настройкой, хотя я ничего существенного не изменял.
Мне нужно будет продолжить расследование, чтобы определить точную причину. причину ошибки и найти решение. Это может включать проверку установки GCC на наличие несоответствий, проверку ее пути в переменных среды или проверку правильности настройки интерпретатора Python PyCharm. Изображение ошибок
> Collecting ultralytics
Using cached ultralytics-8.3.7-py3-none-any.whl.metadata (34 kB)
Collecting numpy\>=1.23.0 (from ultralytics)
Using cached numpy-2.1.2-cp313-cp313-win_amd64.whl.metadata (59 kB)
Collecting matplotlib\>=3.3.0 (from ultralytics)
Using cached matplotlib-3.9.2-cp313-cp313-win_amd64.whl.metadata (11 kB)
Collecting opencv-python\>=4.6.0 (from ultralytics)
Using cached opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl.metadata (20 kB)
Collecting pillow\>=7.1.2 (from ultralytics)
Using cached pillow-10.4.0-cp313-cp313-win_amd64.whl.metadata (9.3 kB)
Collecting pyyaml\>=5.3.1 (from ultralytics)
Using cached PyYAML-6.0.2-cp313-cp313-win_amd64.whl.metadata (2.1 kB)
Collecting requests\>=2.23.0 (from ultralytics)
Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting scipy\>=1.4.1 (from ultralytics)
Using cached scipy-1.14.1-cp313-cp313-win_amd64.whl.metadata (60 kB)
INFO: pip is looking at multiple versions of ultralytics to determine which version is compatible with other requirements. This could take a while.
Collecting ultralytics
Using cached ultralytics-8.3.6-py3-none-any.whl.metadata (34 kB)
Using cached ultralytics-8.3.5-py3-none-any.whl.metadata (34 kB)
Using cached ultralytics-8.3.4-py3-none-any.whl.metadata (34 kB)
Using cached ultralytics-8.3.3-py3-none-any.whl.metadata (34 kB)
Collecting numpy\=1.23.0 (from ultralytics)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
\[19 lines of output\]
D:\\Coding Room\\Python.venv\\Scripts\\python.exe C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949\\vendored-meson\\meson\\meson.py setup C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949 C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949.mesonpy-kpbmsnul -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949.mesonpy-kpbmsnul\\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949
Build dir: C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949.mesonpy-kpbmsnul
Build type: native build
Project name: NumPy
Project version: 1.26.4
C compiler for the host machine: gcc (gcc 6.3.0 "gcc (MinGW.org GCC-6.3.0-1) 6.3.0")
C linker for the host machine: gcc ld.bfd 2.28
C++ compiler for the host machine: c++ (gcc 6.3.0 "c++ (MinGW.org GCC-6.3.0-1) 6.3.0")
C++ linker for the host machine: c++ ld.bfd 2.28
Cython compiler for the host machine: cython (cython 3.0.11)
Host machine cpu family: x86
Host machine cpu: x86
..\\meson.build:28:4: ERROR: Problem encountered: NumPy requires GCC \>= 8.4
A full log can be found at C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949.mesonpy-kpbmsnul\\meson-logs\\meson-log.txt
\[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.
Подробнее здесь: https://stackoverflow.com/questions/790 ... in-pycharm
Ultralytics не устанавливается в pycharm ⇐ Python
Программы на Python
1728456776
Anonymous
Я столкнулся с проблемой при попытке переустановить библиотеку Ultralytics в PyCharm на своем ноутбуке. Несмотря на отсутствие каких-либо изменений в конфигурации моей системы, процесс установки теперь завершается с ошибкой, связанной с компилятором GCC.
Это озадачивает, поскольку ранее я успешно устанавливал Ultralytics без каких-либо проблем. . Сообщение об ошибке указывает на то, что может возникнуть проблема с установкой GCC или его настройкой, хотя я ничего существенного не изменял.
Мне нужно будет продолжить расследование, чтобы определить точную причину. причину ошибки и найти решение. Это может включать проверку установки GCC на наличие несоответствий, проверку ее пути в переменных среды или проверку правильности настройки интерпретатора Python PyCharm. Изображение ошибок
> Collecting ultralytics
Using cached ultralytics-8.3.7-py3-none-any.whl.metadata (34 kB)
Collecting numpy\>=1.23.0 (from ultralytics)
Using cached numpy-2.1.2-cp313-cp313-win_amd64.whl.metadata (59 kB)
Collecting matplotlib\>=3.3.0 (from ultralytics)
Using cached matplotlib-3.9.2-cp313-cp313-win_amd64.whl.metadata (11 kB)
Collecting opencv-python\>=4.6.0 (from ultralytics)
Using cached opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl.metadata (20 kB)
Collecting pillow\>=7.1.2 (from ultralytics)
Using cached pillow-10.4.0-cp313-cp313-win_amd64.whl.metadata (9.3 kB)
Collecting pyyaml\>=5.3.1 (from ultralytics)
Using cached PyYAML-6.0.2-cp313-cp313-win_amd64.whl.metadata (2.1 kB)
Collecting requests\>=2.23.0 (from ultralytics)
Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting scipy\>=1.4.1 (from ultralytics)
Using cached scipy-1.14.1-cp313-cp313-win_amd64.whl.metadata (60 kB)
INFO: pip is looking at multiple versions of ultralytics to determine which version is compatible with other requirements. This could take a while.
Collecting ultralytics
Using cached ultralytics-8.3.6-py3-none-any.whl.metadata (34 kB)
Using cached ultralytics-8.3.5-py3-none-any.whl.metadata (34 kB)
Using cached ultralytics-8.3.4-py3-none-any.whl.metadata (34 kB)
Using cached ultralytics-8.3.3-py3-none-any.whl.metadata (34 kB)
Collecting numpy\=1.23.0 (from ultralytics)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
\[19 lines of output\]
D:\\Coding Room\\Python.venv\\Scripts\\python.exe C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949\\vendored-meson\\meson\\meson.py setup C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949 C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949.mesonpy-kpbmsnul -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949.mesonpy-kpbmsnul\\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949
Build dir: C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949.mesonpy-kpbmsnul
Build type: native build
Project name: NumPy
Project version: 1.26.4
C compiler for the host machine: gcc (gcc 6.3.0 "gcc (MinGW.org GCC-6.3.0-1) 6.3.0")
C linker for the host machine: gcc ld.bfd 2.28
C++ compiler for the host machine: c++ (gcc 6.3.0 "c++ (MinGW.org GCC-6.3.0-1) 6.3.0")
C++ linker for the host machine: c++ ld.bfd 2.28
Cython compiler for the host machine: cython (cython 3.0.11)
Host machine cpu family: x86
Host machine cpu: x86
..\\meson.build:28:4: ERROR: Problem encountered: NumPy requires GCC \>= 8.4
A full log can be found at C:\\Users\\HP\\AppData\\Local\\Temp\\pip-install-hwheu7pa\\numpy_dc50f60de418499a95217a394754e949.mesonpy-kpbmsnul\\meson-logs\\meson-log.txt
\[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.
Подробнее здесь: [url]https://stackoverflow.com/questions/79068927/ultralytics-not-getting-installed-in-pycharm[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия