| Deutsch English Français Italiano |
|
<61af2f58$0$5002$426a34cc@news.free.fr> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!news.trigofacile.com!usenet-fr.net!agneau.org!nntpfeed.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-b.proxad.net!nnrp1-1.free.fr!not-for-mail Date: Tue, 7 Dec 2021 10:54:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: windows : installation module Content-Language: fr Newsgroups: fr.comp.lang.python References: <slrnsqaocj.2pn.lulu042@valentino.Rock-n-Roll.org> From: ast <ast@invalid> In-Reply-To: <slrnsqaocj.2pn.lulu042@valentino.Rock-n-Roll.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 37 Message-ID: <61af2f58$0$5002$426a34cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 07 Dec 2021 10:54:32 CET NNTP-Posting-Host: 91.170.32.5 X-Trace: 1638870872 news-4.free.fr 5002 91.170.32.5:7434 X-Complaints-To: abuse@proxad.net Bytes: 2296 Le 30/11/2021 à 00:26, Lulu a écrit : > Bonjour, > > Je suis linuxien, donc autant dire que je n'ai aucun problème pour > installer des modules python sur ma linuxette. > > Mais mes élèves sont sous Windows 10 (dotation de la région pour tous > les élèves de seconde) et je suis censé leur donner la marche à suivre > pour installer un module comme numpy par exemple. > > Sous windows 10, je peux installer numpy dans une 'invite de commande' > lancée en tant qu'administrateur avec 'python -m pip install numpy'. > > Cependant, je mange une erreur à l'exécution de mon script : > %Run syracuse2_nocolor.py > Traceback (most recent call last): > File "C:\Users\hugo\Documents\taf\2nd_SNT\01_algo_python\2020-01-07_syracuse2\syracuse2_nocolor.py", line 24, in <module> > import numpy as np > ModuleNotFoundError: No module named 'numpy' > > Il semble donc que l'installation des modules ne soit pas "vue" par mon > script. Donc, j'ai besoin d'aide... > > Comment installer un module pour python sous Windows 10 ? > > Merci de votre aide. > Pour voir où Python recherche les modules: import sys from pprint import pprint pprint(sys.path)