VaultBy ENSAMIENParrainage
Note2025-04-29

Installer NumPy

CHOUBIK Houssam

Step 1 : Before proceding installation of Numpy Library you must install pip :

Check this website

If your Python environment does not have pip installed, there are 2 mechanisms to install pip supported directly by pip’s maintainers:

Methode 1 : ensurepip

C:> py -m ensurepip --upgrade

Methode 2 : get-pip.py

C:> py get-pip.py

Step 2 : Upgrading pip

Upgrade your pip by running:

C:> py -m pip install --upgrade pip

Step 3 : Installing numpy

You can run the following command on your command line CMD :

C:> pip install numpy

Step 4 : Checking the version of numpy / Ensuring that numpy is installed

Create a python file using cmd or any text editor. And write the following code, then run it.

import numpy
print(numpy.__version__) # ou bien print(numpy.version.version)

For those who had version conflicts

Try to create first a python environement by runing this command in your CMD / Terminal :

C:> python -m venv yourenvironnementname

Nb : You can name yourenvironnementname by any name for example ill name it venv1 :

C:> python -m venv venv1

Then activate your environnement by running the following command :

C:> venv1\Scripts\activate

You should see someting like this :

(venv1) C:> 

Then re install numpy while your python environnement is active.

    Type at least 2 letters. ↑ ↓ to move, Enter to open.