#28 Python Tutorial for Beginners | Why Numpy? Installing Numpy in Pycharm

preview_player
Показать описание
Check out our courses:

Coupon: TELUSKO10 (10% Discount)

For More Queries WhatsApp or Call on : +919008963671

In this lecture we are discussing about numpy arrays and how to install numpy in pycharm and cmd:

-- If you want to work with multidimension arrays

from array('i', [1,2,3],[4,5,6])
print(arr) # you get error

-- array which are using not supporting multidimension arrays
-- thats why you need to use numpy arrays which are supporting multidimension arrays
-- by default numpy are not installed in python

Install numpy from cmd:
-- you need to install numpy using pip install numpy
-- install using command pip install numpy in cmd(command prompt)

Install numpy in pycharm:
-- in pycharm we need use shortcut ctrl+alt+s and simply going to setting
-- and then going to project interpreter and then click on + sign and search numpy and install it

from numpy import * #importing numpy
arr=array([1,2,3,4,5,6])
print(arr)

Subscribe to our other channel:
Telusko Hindi :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
Рекомендации по теме
Комментарии
Автор

not all superheroes wear capes, some teach Python for free..

shashidharnanda
Автор

For those getting error in cmd while installing numpy try any of the following commands but make sure ur internet is connected
1) 'py -m pip install numpy' OR
2) 'python -m pip install numpy' OR
3) 'py -m pip3 install numpy' OR
4) 'python -m pip3 install numpy'

Any one of the above 4 should work based on the python version u have
If further it is asking to upgrade pip version then use this command in cmd to upgrade pip
'-m pip install --upgrade pip'

scariamathew
Автор

Folks - Whoever is getting an error "pip3 or pip is not a recognized internal or external command" needs to watch Episode#7. Navin has actually shown exactly how to set the path for python or scripts in command prompt. The path needs to be added in the environmental variables. I was getting that error too and went back to that video and set the path. After that, the installation is a breeze. Hope this helps!

mituldaniadventureJunkie
Автор

Many thanks.. What a great teacher you are! 🙏🙏.. This is the sign of a great teacher.. After learning.. almost everything becomes clear and can do by own.. Lots of respect..

chinmaydas
Автор

For everyone getting error like 'PIP is not a recognized internal or external command', please add the location of PIP which is <directory where python is installed>/Scripts [for eg:- if python is in C folder then C:/User/<name of user>/Python37/Scripts] in your windows environmental variable. Then restart your command prompt and then things will work.

silvipriya
Автор

thank you so much am from mechanical background I learned java in one of the institute in bangalore. After joining to company as a developer they told me to learn spring frameworks, I scared in that moment becoz without going to institute and without trainer how can I learn...Then I started to watch your vedios, i learned springs, spring boot, from ur vedios easily That is ur teaching skills thanks a lot sir....now im going to learn python with free of cost...

ranjithnayak
Автор

Thnx sir for ur teaching ❤️ i want to meet u in my life one time u r my idol teacher 🙏🏻🙏🏻🙏🏻🙏🏻☺️☺️☺️❤️❤️

simrankaur-yurh
Автор

Sir.. Your all videos are just amazing... We love to watch your video for educational purposes and its really very helpful in studies as well..

And I want to thank you for making these video free Bcoz as a child in middle class family its very very hard for us to pay any money...

Thank you once again

fun_funda
Автор

For all those who are struggling to install numpy, this will definitely work.
1. Open 'Control Panel'
2. Open 'Programs'
3. Open 'Programs and Features'
4. Right click on 'python 3.7.3' (whatever version you have, right-click on it.)
5. Select 'Change'
6. Click on 'Modify'
7. Click on 'next' (make sure tick is on everything mention)
8. 'Advance Option' will be shown, Tick on everything, and then click on 'Install'
9. That's it, now go to the command prompt and write 'pip3 install numpy'

sarasiddiqui
Автор

Whoever getting error while installing numpy on pycharm:
Without internet connection, numpy cannot be installed on pycharm
First connect to internet, then follow the instructions of Naveen sir
Hope it will work

muzaffarahmed
Автор

Once again u nailed the teaching. Ur way of teaching motivates to learn more without any boredom.

divyamalhotra
Автор

I had problem at the moment of installing numpy in Pycharm. It asks me for installing C++ and other things. The problem was solved when I went to the terminal of Pycharm, uninstalled pip, and reinstalled pip. Automatically pip was installed at the version 20.0.2 and not in the previous version 19.... that obviously was generating some error. Then I proceed to install numpy, and it worked. At least, It was my way of solving it. I hope it helps you. Navin is the best.

lucianobizin
Автор

sir, Are you going to start Artificial Intelligence or machine learning after completion of python series

sreekanthreddy
Автор

sir India needs more teachers like you

nikunjdewan
Автор

Since i have been attending python class Here on YouTube. You are 1 among Millions, your teaching is cool, well detail, well explanatory. Thank you for this Great opportunity. ❤❤

wisdomoregfx
Автор

Thank you very much, greetings from Ukraine.

akirubamiru
Автор

For people using macs, it didn't work when I typed "pip3 install numpy", but it worked when I said "pip install numpy" without the 3

oliverkahn
Автор

Here's a slight reiteration incase someone gets confused with array initialization.

Method 1 - Numpy as np=>
import numpy as np
arr = np.array([1, 2, 3], dtype=int)
or
arr = np.array([1, 2, 3])

Method 2 - import array module from numpy=>
from numpy import *
arr = array([1, 2, 3], dtype=int)

Method 3 - import array module from array=>
from array import *
arr = array(typecode='i', [1, 2, 3])

Notice:
In method 2 and method 3 the array module is imported from different package. So their initailaization differs.
Also the dtype parameter in 'numpy.array' is optional, unlike the typecode paramater in 'array.array' which is required.

deepakmallick
Автор

sir u r the most popular programming teacher on YouTube
So am I here 😁😁😁💖💖💖

stockfish
Автор

sir i installed numpy in pycharm but is didn't work .i typed your code in pycharm but it made errors so please give me solution

kajalrewatkar