SoFunction
Updated on 2024-12-12

Window11 system Python3.11 install numpy library ultra-detailed tutorials

preamble

I've been learning Python lately, but I've been having a lot of problems with the Numpy package. The installation was unsuccessful, and using the pip install numpy command also prompted for the wrong version of pip.

After a couple days of hard work, I finally got the numpy package installed in python 3.11.

This sharing is also to take notes for myself in case I change computers and have the same problem.

The installation steps are as follows:

1.Download Numpy file

Download the corresponding version of Numpy files at /project/numpy/#files.

My computer is Windows 11 64-bit, with Python 3.11.0 installed.

cp311: The corresponding version of Python is 3.11.

win_amd64.whl: indicates the file corresponding to Windows 64-bit system.

2. Put the NumPy file into the Scripts folder of your Python installation.

The location is in your Python installation directory, for example, my installation location is D:\Program Files\Python\Python311\Scripts

3. Check the variable environment and add the installation path to the environment variable when installing.

Win11 Path: Settings - System - Advanced System Settings

In the pop-up page, click the "Environment Variables" button in the lower part of the pop-up environment variable management page of the "System Variables" to find the Path, click Edit.

Click New in the page number pop-up, copy the directory of the file and add and save it;

4. Install numpy

Go to your scripts folder, mine is D:\Program Files\Python\Python311\Scripts, and type "cmd" directly into the address bar to bring up the command line. Then type pip install numpy-1.24.2-cp311-cp311-win_amd64.whl and enter. The installation is successfully installed.

5. Checking the installation

Run the python command line

Type import numpy and if no error is reported, the installation was successful.

summarize

to this article on the window11 system Python3.11 install numpy library is introduced to this article, more related to window11 Python3.11 install numpy content please search my previous posts or continue to browse the following related articles I hope you will support me in the future!