How to install NumPy library on Thonny software
In this article, we learn how to install NumPy on Thonny software. First of all, we understand what Numpy is.
What is NumPy
NumPy is a Python library used for working with arrays. It also has functions for working in the domain of linear algebra, Fourier transform, and matrices.
Use of Numpy
NumPy arrays are faster and more compact than Python lists. An array consumes less memory and is convenient to use. NumPy uses much less memory to store data and it provides a mechanism of specifying the data types. This allows the code to be optimized even further.
Steps to install NumPy on Thonny software
There are a few steps to install NumPy on Thonny software.
Step # 1
First, open Thonny software and write a command to check else Numpy is installed on it or not.
Run this command “ import numpy as np”.
Now if an error occurs then it means it is not installed.
Step # 2
Click on the tool button at the top of the Thonny software here you see the “Manage Packages” button click on this to enter. Follow the screenshot.
Step # 3
Now a new screen show with a new popup message here you see the search bar click on it and write “Numpy”.
Now you see NumPy written in the blue pattern, click on it. Follow the screenshot.
Step # 4
When you click on “numpy” button then this type of screen appears now follow the instruction on the screenshot.
After clicking on the button installation has been started.
And finally when you rewrite this command to check whether Numpy is now installed or not so write this command "import numpy as np".
To get more information click on this link to understand.
"Thanks For Visiting Our Website"
0 Comments