Python NumPy Module

Python NumPy Module

Standard Python distribution doesn’t come bundled with NumPy module. A lightweight alternative is to install NumPy using famous Python package bundle installer, pip.

स्टैण्डर्ड पायथन वितरण NumPy मॉड्यूल के साथ बंडल नहीं आता है। एक लाईटवेट विकल्प लोकप्रिय पायथन इंस्टालर पैकेज इंस्टॉलर pip का उपयोग करके NumPy स्थापित करना है।

pip install numpy

The best way to enable NumPy is to use an installable binary package specific to your operating system. These binaries contain full SciPy stack (inclusive of NumPy, SciPy, matplotlib, IPython, SymPy and nose packages along with core Python.

NumPy को सक्षम करने का सबसे अच्छा तरीका है कि आप अपने ऑपरेटिंग सिस्टम के लिए विशिष्ट बाइनरी पैकेज का उपयोग करें। इन बायनेरिज में पूर्ण SciPy स्टैक (NumPy, SciPy, matplotlib, IPython, SymPy और नोज पैकेज के साथ कोर पायथन शामिल हैं।

How dol install NumPy? – हम NumPy को कैसे इंस्टाल करें?

Step 1: To install Python NumPy, go to your command prompt and type “pip install numpy”.

पायथन NumPy को इंस्टाल करने के लिए, अपने कमांड प्रॉम्प्ट पर जाएं और “pip install numpy” टाइप करें।

Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. All rights reserved.




C:\Windows\system32>pip install numpy

Collecting numpy

  Downloading https://files.pythonhosted.org/packages/52/2c/bf86d762ae65550dc8a7

ab8381ba610bb69af6db619b3755f2b73052c6b9/numpy-1.18.4-cp38-cp38-win32.whl (10.8M

B)

     |████████████████████████████████| 10.8MB 939kB/s

Installing collected packages: numpy

Successfully installed numpy-1.18.4

WARNING: You are using pip version 19.2.3, however version 20.1.1 is available.

You should consider upgrading via the ‘python -m pip install –upgrade pip’ comm

and.

C:\Windows\system32>python -m pip install –upgrade pip

Collecting pip

  Downloading https://files.pythonhosted.org/packages/43/84/23ed6a1796480a6f1a2d

38f2802901d078266bda38388954d01d3f2e821d/pip-20.1.1-py2.py3-none-any.whl (1.5MB)




     |████████████████████████████████| 1.5MB 409kB/s

Installing collected packages: pip

  Found existing installation: pip 19.2.3

    Uninstalling pip-19.2.3:

      Successfully uninstalled pip-19.2.3

Successfully installed pip-20.1.1

C:\Windows\system32>

Step 2: After installation check NumPy working or not, for this goto Python’s command prompt and

type “import NumPy”. If not installed properly raises an Error message otherwise it will show command prompt.

इंस्टॉलेशन चेक के बाद NumPy काम कर रहा है या नहीं, इसके लिए गोटू पायथन की कमांड प्रॉम्प्ट और “import NumPy” टाइप करें। यदि ठीक से इंस्टाल नहीं है, तो एक एरर मैसेज रेज करता है अन्यथा यह कमांड प्रॉम्प्ट दिखाएगा।

Step 3: Once the installation is completed, go to your IDE and simply import it by typing: “import

numpy as np”.

एक बार इंस्टॉलेशन पूरा हो जाने के बाद, अपने IDE पर जाएं और टाइप करके इसे इंपोर्ट करें:

“import numpy as np” |

Comparison between Core Python and Numpy –कोर पायथन और Numpy के बीच तुलना

When we say “Core Python”, we mean Python without any special modules, i.e. especially without NumPy.

जब हम “कोर पायथन” कहते हैं, तो हमारा मतलब है कि पायथन बिना किसी विशेष मॉड्यूल के, अर्थात विशेष रूप से बिना NumPy के।

Web Publishing and Browsing

About Me