Page 1 sur 2

Installer Deface

Posté : sam. 10 mai 2025 21:06
par Genevrier1
Bonjour,

Je souhaiterais installer "deface" un outil pour flouter les visages sur mon Linux Mint 22
J'ai testé :

Code : Tout sélectionner

$ python3 -m pip install deface
Mais je reçois "commande introuvable....
Qui a une idée ?*
D'avance merci

Re: Installer Deface

Posté : sam. 10 mai 2025 21:55
par alain
Bonjour Genevrier.

python3 est-il installé ?

Code : Tout sélectionner

alain@alain-desktop:~$ apt policy python3
python3:
  Installé : 3.12.3-0ubuntu2
  Candidat : 3.12.3-0ubuntu2
 Table de version :
 *** 3.12.3-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.12.3-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
alain@alain-desktop:~$ 

Re: Installer Deface

Posté : sam. 10 mai 2025 22:12
par Genevrier1
Dans synaptic, je vois que le paquet "python3" est installé...

Re: Installer Deface

Posté : sam. 10 mai 2025 22:14
par Genevrier1

Code : Tout sélectionner

 sudo apt install python3 
[sudo] Mot de passe de michel :    
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
python3 est déjà la version la plus récente (3.12.3-0ubuntu2).
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  breeze kde-style-breeze kwin-style-breeze libcharls2 libebur128-1
  libgdcm3.0t64 libkdecorations2-5v5 libkdecorations2private10 libkf5style5
  liblept5 libllvm17t64 libmediainfo0v5 libmlt++7 libmlt-data libmlt7 libmms0
  libmovit8 libopencv-contrib406t64 libopencv-highgui406t64
  libopencv-imgcodecs406t64 libopencv-ml406t64 libqt5networkauth5 librtaudio6
  libsocket++1 libsox-fmt-alsa libsox-fmt-base libsox3 libtesseract5
  libtinyxml2-10 libzen0t64 linux-headers-6.8.0-50
  linux-headers-6.8.0-50-generic linux-headers-6.8.0-51
  linux-headers-6.8.0-51-generic linux-headers-6.8.0-52
  linux-headers-6.8.0-52-generic linux-headers-6.8.0-53
  linux-headers-6.8.0-53-generic linux-headers-6.8.0-54
  linux-headers-6.8.0-54-generic linux-headers-6.8.0-55
  linux-headers-6.8.0-55-generic linux-headers-6.8.0-56
  linux-headers-6.8.0-56-generic linux-headers-6.8.0-57
  linux-headers-6.8.0-57-generic linux-image-6.8.0-50-generic
  linux-image-6.8.0-51-generic linux-image-6.8.0-52-generic
  linux-image-6.8.0-53-generic linux-image-6.8.0-54-generic
  linux-image-6.8.0-55-generic linux-image-6.8.0-56-generic
  linux-image-6.8.0-57-generic linux-modules-6.8.0-50-generic
  linux-modules-6.8.0-51-generic linux-modules-6.8.0-52-generic
  linux-modules-6.8.0-53-generic linux-modules-6.8.0-54-generic
  linux-modules-6.8.0-55-generic linux-modules-6.8.0-56-generic
  linux-modules-6.8.0-57-generic linux-modules-extra-6.8.0-50-generic
  linux-modules-extra-6.8.0-51-generic linux-modules-extra-6.8.0-52-generic
  linux-modules-extra-6.8.0-53-generic linux-modules-extra-6.8.0-54-generic
  linux-modules-extra-6.8.0-55-generic linux-modules-extra-6.8.0-56-generic
  linux-modules-extra-6.8.0-57-generic linux-tools-6.8.0-50
  linux-tools-6.8.0-50-generic linux-tools-6.8.0-51
  linux-tools-6.8.0-51-generic linux-tools-6.8.0-52
  linux-tools-6.8.0-52-generic linux-tools-6.8.0-53
  linux-tools-6.8.0-53-generic linux-tools-6.8.0-54
  linux-tools-6.8.0-54-generic linux-tools-6.8.0-55
  linux-tools-6.8.0-55-generic linux-tools-6.8.0-56
  linux-tools-6.8.0-56-generic linux-tools-6.8.0-57
  linux-tools-6.8.0-57-generic mediainfo melt
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 6 non mis à jour.
michel@michel-UNLOCK-INSTALL:~$ 


Re: Installer Deface

Posté : dim. 11 mai 2025 01:06
par alain
Alors c'est peut-être python3-pip qui te manque ?
Tu aurais dû nous donner le retour de la commande plutôt que de dire :
Genevrier1 a écrit : sam. 10 mai 2025 21:06 Mais je reçois "commande introuvable....
Nous ne sommes pas devins (juste divins :l :D )

Re: Installer Deface

Posté : dim. 11 mai 2025 09:38
par Genevrier1
Je reçois:

Code : Tout sélectionner

ichel@michel-UNLOCK-INSTALL:~$ sudo python3 -m pip install deface
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
michel@michel-UNLOCK-INSTALL:~$ 


Re: Installer Deface

Posté : dim. 11 mai 2025 09:43
par alain
et bien xyz c'est pip dans ton cas.

Re: Installer Deface

Posté : dim. 11 mai 2025 14:47
par Genevrier1
J'ai installé python3-xyz, mais toujours impossible d'installer "deface"

Code : Tout sélectionner

[sudo] Mot de passe de michel :    
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
michel@michel-UNLOCK-INSTALL:~$ 


Re: Installer Deface

Posté : dim. 11 mai 2025 14:55
par rexmint59
Bonjour, Je crois que ce n'est pas xzy que tu devais installer mais plutôt python3-pip qui correspond, dans ton cas, à xzy ; Comme le précise alain ! :shock: :lol:

Re: Installer Deface

Posté : dim. 11 mai 2025 16:37
par Genevrier1
J'ai bien installé " python3-pip "....
mais ça ne change rien