Merci beaucoup, Florent, je vais tester cette option.

 

David.

 

De : Florent Lagoda <florent.lagoda@univ-rennes2.fr>
Envoyé : mardi 7 juin 2022 15:54
À : wapt@lists.wapt.fr; sysadmin@lfib.ac.th
Objet : Re: [Wapt] Lancer une commande powershell v.1 ou un cmd avec wapt

 

Bonjour David,

Ici nous faisons comme ceci sans rentrer dans le venv, pour ajouter des modules silencieusement :

 

run_notfatal(r'"C:\Program Files\Anaconda3\Scripts\conda.exe" install -y leModule')

 

 

 

 

Le 07/06/2022 à 04:57, David Matta via WAPT a écrit :

Bonjour,

 

J’ai besoin de lancer une commande powershell v.1, idéalement via un paquet wapt, voici ma commande :

%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy ByPass -NoExit -Command "& 'C:\Program Files\Anaconda3\shell\condabin\conda-hook.ps1' ; conda activate 'C:\Program Files\Anaconda3' ; pip install folium ; pip install pyroutelib3"

 

J’ai mis cette commande dans un cmd mais je ne trouve pas comment le lancer et silencieusement.

 

Merci par avance de vos idées.

 

Cordialement.

 

 

Lycée Français International

Bangkok, THAILAND

David MATTA
Responsable des SI / IT Manager

 

498, Soi Ramkhamhaeng (Thep Leela 1)

Wangthonglang - 10310 - Bangkok
Tél :     66 (0) 29 34 80 08
Fax :    66 (0) 29 34 66 70
sysadmin@lfib.ac.th
www.lfib.ac.th | LinkedIn | Facebook | Twitter

This communication (including any files transmitted with it) is intended solely for the person or entity to whom it is addressed, and may contain confidential or privileged information. The disclosure, distribution or copying of this message is strictly forbidden. Should you have received this communication in error, kindly contact the sender promptly, destroy any copies and delete this message from your computer system.

 



_______________________________________________
WAPT mailing list
WAPT@lists.wapt.fr
http://lists.wapt.fr/listinfo/wapt