Python error : subprocess-exited-with-error

Fermé
user_3022 Messages postés 11 Date d'inscription dimanche 4 décembre 2022 Statut Membre Dernière intervention 19 avril 2023 - 27 janv. 2023 à 18:05
user_3022 Messages postés 11 Date d'inscription dimanche 4 décembre 2022 Statut Membre Dernière intervention 19 avril 2023 - 28 janv. 2023 à 16:11

je dois télécharger le package opencv-python pour utiliser cv2 mais un message d'erreur s'affiche:

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

4 réponses

Bnjour, quel est ton système d'exploitation ? Quel est ta version de python ? pip(3) est-il à jour ?

0
user_3022 Messages postés 11 Date d'inscription dimanche 4 décembre 2022 Statut Membre Dernière intervention 19 avril 2023
Modifié le 28 janv. 2023 à 12:06

Bonjour, je suis sur mac os x 10.11.6 ma version de python est 3.10 , oui j'ai mis pip à jour sa version est 22.3.1.

0

Déslolé, je n'ai jamais utilisé de macos, et quelques recherches sur internet montre des problèmes similaires au tien, mais pas vu de réponses semblant pertinentes.

Je pense tout de même que c'est une bibliothèque manquante qui fait que l'installation échoue.

Est-ce que Cmake est instalé sur ton système ?

https://docs.opencv.org/4.x/d0/db2/tutorial_macos_install.html

Il faudrait aussi que tu montres le reste du message d'erreur qui pourrait donner un indice à ceux utilisant ce sytème.

Et éventuellement fureter dans les problèmes rencontrés sur github.

https://github.com/opencv/opencv-python/issues?q=mac+install

Tu as installé python comment ? Avec brew ? Tu ne peux pas faire de même pour opencv ? Donc ne pas passer par pip, mais via tes paquets sytèmes ? (désolé si je dis une sottise).

0
user_3022 Messages postés 11 Date d'inscription dimanche 4 décembre 2022 Statut Membre Dernière intervention 19 avril 2023
28 janv. 2023 à 16:11

voila le message d'erreur :

  Using cached opencv-python-4.7.0.68.tar.gz (91.1 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error
 
  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment
      Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment
      Ignoring numpy: markers 'python_version == "3.9" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
      Collecting setuptools==59.2.0
        Using cached setuptools-59.2.0-py3-none-any.whl (952 kB)
      Collecting wheel==0.37.0
        Using cached wheel-0.37.0-py2.py3-none-any.whl (35 kB)
      Collecting cmake>=3.1
        Using cached cmake-3.25.0-py2.py3-none-macosx_10_10_universal2.macosx_10_10_x86_64.macosx_11_0_arm64.macosx_11_0_universal2.whl (45.1 MB)
      Collecting pip
        Using cached pip-22.3.1-py3-none-any.whl (2.1 MB)
      Collecting scikit-build>=0.13.2
        Using cached scikit_build-0.16.6-py3-none-any.whl (79 kB)
      ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
      ERROR: Could not find a version that satisfies the requirement numpy==1.21.2 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0, 1.21.1, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.23.0rc1, 1.23.0rc2, 1.23.0rc3, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4, 1.23.5, 1.24.0rc1, 1.24.0rc2, 1.24.0, 1.24.1)
      ERROR: No matching distribution found for numpy==1.21.2
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
MacBook-Pro-de-Kalix:~ kalixarekos$  Using cached opencv-python-4.7.0.68.tar.gz (91.1 MB)
-bash: syntax error near unexpected token `('
MacBook-Pro-de-Kalix:~ kalixarekos$   Installing build dependencies ... error
-bash: Installing: command not found
MacBook-Pro-de-Kalix:~ kalixarekos$   error: subprocess-exited-with-error
-bash: error:: command not found
MacBook-Pro-de-Kalix:~ kalixarekos$   
MacBook-Pro-de-Kalix:~ kalixarekos$   × pip subprocess to install build dependencies did not run successfully.
-bash: ×: command not found
MacBook-Pro-de-Kalix:~ kalixarekos$   │ exit code: 1
-bash: │: command not found
MacBook-Pro-de-Kalix:~ kalixarekos$   ╰─> [19 lines of output]
-bash: ╰─: command not found
MacBook-Pro-de-Kalix:~ kalixarekos$       Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
>       Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
-bash: Ignoring: command not found
MacBook-Pro-de-Kalix:~ kalixarekos$       Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
>       Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment
-bash: =: No such file or directory
MacBook-Pro-de-Kalix:~ kalixarekos$       Ignoring numpy: markers 'python_version <= "3.9" and sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment

0