Inscription / Connexion Nouveau Sujet
Niveau maths spé
Partager :

comment on installe numpy

Posté par
termina123
20-03-21 à 20:33

Bonsoir
J'ai rentré py -m pip install numpy dans le cmd ça l'a installé mais ça m'a mit ce message :
WARNING: You are using pip version 20.2.3; however, version 21.0.1 is available.
You should consider upgrading via the 'c:\users\termina123\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip' command.


et quand je vais sur pyzo la console me dit pour import numpy as np :
Traceback (most recent call last):
  File "<tmp 1>", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'


ma version de python est 3.7.4 sur windows 64 bits

Posté par
jarod128
re : comment on installe numpy 20-03-21 à 20:43

Bonsoir,
Et bien as-tu essayé la ligne proposée ?

Posté par
termina123
re : comment on installe numpy 20-03-21 à 20:54

Bonsoir jarod128
Ce que j'ai fait : j'ai lu ou je devais aller dans les dossiers puis j'ai cliqué sur python.exe et j'ai entré py -m pip install numpy et il me renvoie SyntaxError: invalid syntax
J'ai aussi entré -m pip install --upgrade pip et il me renvoie SyntaxError: invalid syntax
En fait je comprends rien

Posté par
jarod128
re : comment on installe numpy 20-03-21 à 21:21

Il faut taper
python -m pip install --upgrade pip

Posté par
termina123
re : comment on installe numpy 20-03-21 à 21:25

ça me renvoie
Python est introuvable. ExÚcutez sans argument pour procÚder Ó l

Posté par
jarod128
re : comment on installe numpy 20-03-21 à 21:34

Il faut que tu sois dans le dossier de python

Posté par
termina123
re : comment on installe numpy 20-03-21 à 21:38

Maintenant je suis dans python.exe
J'ai tapé python -m pip install --upgrade pip ça me renvoie SyntaxError: invalid syntax
J'ai aussi tapé -m pip install --upgrade pip et pareil

Posté par
jarod128
re : comment on installe numpy 20-03-21 à 21:56

Il ne faut pas être dans python.exe mais dans le dossier:
c:\users\termina123\appdata\local\programs\python\python39\
Tu tapes bien dans une console DOS ?

Posté par
jarod128
re : comment on installe numpy 20-03-21 à 21:59

Dans la barre de recherche de  Windows (de mémoire car je suis sous linux) cmd
Tu dois avoir une fenêtre et tu tapes

cd c:\users\termina123\appdata\local\programs\python\python39\ 

Puis la ligne avec python -m

Posté par
termina123
re : comment on installe numpy 20-03-21 à 22:03

Collecting pip
  Downloading pip-21.0.1-py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 1.7 MB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.2.3
    Uninstalling pip-20.2.3:
      Successfully uninstalled pip-20.2.3
Successfully installed pip-21.0.1

Maintenant quand je vais sur pyzo :
Traceback (most recent call last):
  File "<tmp 1>", line 1, in <module>
    import numpy as np
ModuleNotFoundError: No module named 'numpy'

Posté par
jarod128
re : comment on installe numpy 20-03-21 à 22:20

Tu as mis à jour pip. C'est bien maintenant la ligne py -m pip install numpy

Posté par
termina123
re : comment on installe numpy 20-03-21 à 22:26

Je l'ai fait et ça renvoie ça
Requirement already satisfied: numpy in c:\users\termina123\appdata\local\programs\python\python39\lib\site-packages (1.20.1)
et quand je lance pyzo ca marche pas

Posté par
jarod128
re : comment on installe numpy 20-03-21 à 22:44

Je ne connais pas pyzo
Essayé:
python.exe
Puis
import numpy

Posté par
termina123
re : comment on installe numpy 20-03-21 à 23:37

j'ai fait import numpy dans la console pyzo ca a marché



Vous devez être membre accéder à ce service...

Pas encore inscrit ?

1 compte par personne, multi-compte interdit !

Ou identifiez-vous :


Rester sur la page

Inscription gratuite

Fiches en rapport

parmi 1675 fiches de maths

Désolé, votre version d'Internet Explorer est plus que périmée ! Merci de le mettre à jour ou de télécharger Firefox ou Google Chrome pour utiliser le site. Votre ordinateur vous remerciera !