Тёмный

How to install Python Libraries in Visual Studio Code 

Aditya Thakur
Подписаться 13 тыс.
Просмотров 1,1 млн
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 577   
@robertruta687
@robertruta687 3 года назад
For those missing green (venv). Solution: after you have typed the command "python -m venv ..." and have hit enter as my man Aditya does at 2:05 and have waited for it to make the venv directory, type into the terminal the following line: venv\scripts\activate and hit enter. Done. You should now how the green (venv) and be working with your virtual environment. !!ERROR!! If an error pops up about permissions or access being denied or something, go ahead and type into the terminal (you might want to reverse this change after you have done it btw, so read about this if you concerned): Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process and try executing "venv\scripts\activate" in the terminal again. !!ADDITIONAL POSSIBLE FIXES!! - make sure you're terminal is working in the correct directory (for example: C:\Users\Asus\Desktop\Project>) before executing "venv\scripts\activate"
@tanushsavadi988
@tanushsavadi988 3 года назад
Hey bro, thank you! May I know what 'Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process' does, please? Also, do you know how to revert back, please? Thank you :)
@robertruta687
@robertruta687 3 года назад
@@tanushsavadi988 I can’t give you a high level answer to this question, however, I can tell you for sure that it grants you permission to execute scripts. The -scope process makes it so that this permission is returned to its default value as soon as you’re done with whatever you’re currently doing. If you want to permanently grant yourself permission to execute these scripts, you just have to remove the “-scope process” part. In summary, you can using that command without worrying because all is returned to its original state after you’ve used venv\scripts\activate ;)
@tanushsavadi988
@tanushsavadi988 3 года назад
@@robertruta687 Cheers mate, thank you. I get the gist of it now
@bikikumarsahkalwar8477
@bikikumarsahkalwar8477 3 года назад
Thanks a lot!
@Jacob11227
@Jacob11227 3 года назад
hey for some reason after i installed the library i want the venv folder is still there unlike Aditya's and ist sayin there is no module called that
@jeff3608
@jeff3608 3 года назад
Thank you so much! I have been searching for an easy to follow explanation like this for so long!
@AdityaThakurXD
@AdityaThakurXD 3 года назад
Thank you :) I am glad.
@YashvirGaming
@YashvirGaming 3 года назад
@@AdityaThakurXD help me fix this import requests could not be resolved from source vscode
@marceloquesada8304
@marceloquesada8304 3 года назад
Thanks so much, i´ve been trying to solve this for ages and your tutorial was the first that i found that was intuitive and easy to follow, keep up the good work!
@durb5259
@durb5259 3 года назад
I litterly searched this up because i needed to make a graph in python for school and u actually just did it with a graph xD
@johnreskusich2324
@johnreskusich2324 2 года назад
Your explanation is awesome. Been trying to figure it out for hours and I saw your video and it fixed everything. Much appreciated. Thank you
@Jamariyah_Zaire_Malakai
@Jamariyah_Zaire_Malakai 3 года назад
Thank you for a well produced straightforward tutorial. Learned what I needed to without all the bs. 👍
@huynna664
@huynna664 2 года назад
thanks a lot, I spent nearly a week and tried many ways but nothing actually happened until I followed your instructions. Many thanks!!!!!!!!!
@chrisjones469
@chrisjones469 3 года назад
Thank you for this! I was following a Python tutorial, but I didn't want to use a new editor. I was having issues using Python modules until watching this.
@brandonuriel5636
@brandonuriel5636 2 месяца назад
Thank you, brother. I couldn't solve this same problem but with Numpy. The bookcase was underlined in yellow and I couldn't execute my arrangement. Now with your steps I managed to execute my script. Thank you!!
@patrickkutal7166
@patrickkutal7166 Год назад
Thanks man, I have been trying to find the solution almost all day but this one thing cracked it for me finally! :)
@itsarshadahmad
@itsarshadahmad 2 года назад
To create virtual environment: -> py -m venv env To activate virtual environment: -> .\env\Scripts\activate To deactivate virtual environment: -> deactivate
@MrMenace3210
@MrMenace3210 2 года назад
you haven't even got the same syntax/arrangement as the video or the top example, yet your is the only one that works for me. Very grateful!
@kyberghost3607
@kyberghost3607 6 месяцев назад
@@MrMenace3210 Same here
@juhasimpson5412
@juhasimpson5412 8 месяцев назад
I can't believe I need this vedio even after I have been a senior student.
@mohd.irfanlohar4544
@mohd.irfanlohar4544 3 года назад
Thanks Bhaiya i have a question can we run pandas by this method By writing pip install pandas
@alexandrespiri4297
@alexandrespiri4297 2 года назад
Been stuck for ages ! Thanks so much. This shit about installing libraries takes 90% of my "coding" time.
@troychalmers3646
@troychalmers3646 2 года назад
thank you very much, it worked first time for me. I remember needing to do this in the spyder IDE but either it was easier or I had a teacher holding my hand the whole way
@fakebuddy5390
@fakebuddy5390 2 года назад
bro huge thx its 5 pm i was trying to execute my project from morning itself but again n again m getting same error ,, but after watching this tutorial i got to know virtual environment is must thing thx buddy again (i m new to python )
@Gabugaburere
@Gabugaburere 3 года назад
If anyone is having trouble with installing using pip install ... First upgrade pip: py -m pip install --upgrade pip Otherwise, thanks so much Aditya! My man
@pumkinkidd1165
@pumkinkidd1165 2 года назад
bro you dont know how much u just saved me, ive been using vms and was gonna get a laptop cause my pc was being weird, this saved me tysm
@Kaylumm
@Kaylumm 2 года назад
it just says "no module named venv" whenever I try. can someone help me with this please
@sopino155
@sopino155 10 месяцев назад
Hi Aditya, thank you for the tutorial. When I follow your instruction and try to create ve, console says that my command not found. I just started using VS and probably I am missing some extensions?
@alnoorratansi9364
@alnoorratansi9364 3 года назад
Great video, I am not getting the green (venv) can you help please, thanks
@anilmohta77
@anilmohta77 3 года назад
Yeah me too
@cosmicdagger9079
@cosmicdagger9079 2 года назад
Same
@RAWRCoding
@RAWRCoding Год назад
If VS Code is still throwing an error about the library import, make sure you select the correct interpreter (CTRL+SHIFT+P) and type "Interpreter" and choose the correct one.
@totsh2056
@totsh2056 Год назад
Thank you so much. I struggled with this all day.
@gianlucaalfieri3607
@gianlucaalfieri3607 Год назад
You should be the second comment in the list tysm
@meekykols2917
@meekykols2917 Год назад
Please what's the correct interpreter
@casagrande__2526
@casagrande__2526 Год назад
you sir are the goat
@rajatdang8973
@rajatdang8973 Год назад
I am trying to do so but nothing is changing
@FriedPawnsForDinner
@FriedPawnsForDinner 2 года назад
Omg thankyou so much I cant believe I was trying to import using the terminal rather than the code space👀
@willykitheka7618
@willykitheka7618 2 года назад
Imagine I had to come back here again. Thanks Thakur!
@hydrochloricgamer4521
@hydrochloricgamer4521 2 года назад
If python --version does not work use py --version in cmd also use py instead of python in vscode
@karimgnz5270
@karimgnz5270 Год назад
thanks bro, I was having this problem
@junaid_qadir
@junaid_qadir 2 года назад
Hi thanks for the short video clip. I created virtual environment with your method, but it cannot activate like a green color on your screen (venv). Can you please let me know how can I activate it?
@priyadarshnisundararajan5774
@priyadarshnisundararajan5774 7 месяцев назад
Same problem!What to do?Did u find a solution?
@srivenkateshakula2048
@srivenkateshakula2048 4 месяца назад
I think you have to create a new terminal and paste the powershell file path (Activaet.ps1), then press enter.
@rosspatel3526
@rosspatel3526 Год назад
this worked! Be sure to have powershell as your terminal type.
@carlospincheira532
@carlospincheira532 3 года назад
I been stuck like almost 3 week until I saw this video, THANKS YOU!!!!!
@Userisnmuh
@Userisnmuh 3 года назад
thank you so much, I browsing for hours until I found your tutorials,,,very simple to solve the problem
@GreenSpeedPRO
@GreenSpeedPRO 2 года назад
I don't have slightest idea about coding but you fixed my problem.
@earlsandersjr.2023
@earlsandersjr.2023 2 года назад
Thank you, I been trying to do this for 2 days . Watching your video I finally figure it out..Thanks
@luvlegendgaming5912
@luvlegendgaming5912 Год назад
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. bro i am facing this error . can someone assist me on how to fix it?
@MaxamedAxmed-h9e
@MaxamedAxmed-h9e Год назад
Thanks sir it’s the eisiest way you can display your graphs keep going sir
@digitizzein1462
@digitizzein1462 3 года назад
Hey Aditya, Hope you are doing good. I am getting permission denied error while using pip in vs code. Can you help me ? Would be great help. Thanks
@nithyalakshmigurupackiam2186
@nithyalakshmigurupackiam2186 2 года назад
Thank you so much for your video sir.I was looking for this for hours.Finally I got it
@juansteiven2441
@juansteiven2441 3 года назад
Does this method also work when we want to use Numpy and Pandas?
@hitanshujena7470
@hitanshujena7470 5 месяцев назад
thanks bhai 😁i am watching this in 2024 and still it is very helpful for me
@arthgupta614
@arthgupta614 3 года назад
Getting error of excess denied
@GoonvGoon
@GoonvGoon 2 года назад
Run the actual power shell as an administrator then enter : Set-ExecutionPolicy RemoteSigned Then click Yes
@advancegamer8599
@advancegamer8599 3 года назад
After installing it still shows no module named 'matplotlib' ????
@Magma-uw7yo
@Magma-uw7yo 3 года назад
I've got an error when I try to install the venv, it's say : Python was not found. I'ld like to install pandas, numpy etc but I can't find a solution. Thank you
@curiously-cinnamon
@curiously-cinnamon Год назад
Did you get a fix?
@mingji753
@mingji753 2 года назад
very thank you sir, i had trouble running pygame code. I fixed it now. thanks. Keep making these type of videos.
@YoMemez
@YoMemez 10 месяцев назад
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. Sir What i Do?
@mohammedarmankhan2152
@mohammedarmankhan2152 Год назад
Take love brother from Bangladesh. This vedio is very helpful for me.And easily solved my problem.I think you create more vedio.Thank you.💓
@AdityaThakurXD
@AdityaThakurXD Год назад
Glad it helped. Thank you so much!
@M3rmigas
@M3rmigas 3 года назад
Hi, in the step when we re-open the terminal it doesnt start with the green (venv) what should I do? thx
@franciskatende1566
@franciskatende1566 3 года назад
same issue im facing. why cant things just be straight forward?
@tanmaysatsangi131
@tanmaysatsangi131 3 года назад
Same issue on my side
@everlastinGamer
@everlastinGamer 3 года назад
@@tanmaysatsangi131 Same here
@Sbie753
@Sbie753 11 месяцев назад
Thank you for the tutorial very simple to understand. However I have a question, do we do this for all of our projects or is there a way you can store the modules once so that you can use them again?
@User-gu3se
@User-gu3se Год назад
When I tried to install a some library using "pip" comand, this message appears in yellow: "WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available". I'm using windows 10.
@rafikamara1274
@rafikamara1274 Год назад
God bless you and thank you for everything, fellow knowledge seeker 👋
@kidtoucher302
@kidtoucher302 2 года назад
WOW THIS INDIAN FRIEND SAVED MY LIFE!
@dishakumbhar3657
@dishakumbhar3657 3 года назад
HATSS OFF I WAS SEARCHING FROM WHEN LIKE SUPER QUICKLY !!!THANKYOU U MADE ME EASY
@cloudproblemssolved
@cloudproblemssolved 7 месяцев назад
that did not work for me, but something else did, i clicked on Activate.ps1 under Scripts under Project and ran the entire file and the green (.venv) suddenly appeared that did not work for me, but something else did, i clocked on Activate.ps1 under Scripts under Project and ran the entire file and the green (.venv) suddenly appeared
@therzook
@therzook 3 года назад
I tried to do venv several times... finally got it thank you. sometimes we all hit roadblock which is like a fart in a spacesuit, life
@SreejithS-v2h
@SreejithS-v2h 11 месяцев назад
Thank you. Very short and to the point and It works.
@KhushiSharma-sr6pw
@KhushiSharma-sr6pw Год назад
I have done the same till installing matplotlib but after that it is again showing no module found
@science9606
@science9606 Год назад
Same
@asamayeux9103
@asamayeux9103 5 месяцев назад
When I type it in the make a virtual environment I get pyhon : The term 'pyhon' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + pyhon -m venv C:\Users\Mayeu\OneDrive\Desktop\VSC\venv + ~~~~~ + CategoryInfo : ObjectNotFound: (pyhon:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
@rishupranjal
@rishupranjal 3 года назад
Brother it will really prove to be helpful for me... Thanks for sharing❤
@AdityaThakurXD
@AdityaThakurXD 3 года назад
I am glad ✨ Thank you for leaving a comment. 💯
@PrankIncluded
@PrankIncluded 3 года назад
Thank you so much sir ❤️
@dienau6313
@dienau6313 8 месяцев назад
I did as same as you but, when I type " pip install numpy ", it said Fatal error in launcher: Unable to create process using '"C:\Users\DIEN\Desktop\hk2 2022-2023\2022-2023\venv\bin\python.exe" "C:\Users\DIEN\Desktop\hk2_22-23\venv\bin\pip.exe" install numpy': The system cannot find the file specified.
@robertocianciulli2445
@robertocianciulli2445 2 года назад
I've to repeat every time i need those packages this procedure with venv? Or it has to be done just once and i can use such packages. Thank you in advance bro.
@professormhassan6703
@professormhassan6703 6 месяцев назад
Thank you for this, really helpful. Wanted to ask about anaconda along with vs code; thought downloading anaconda brings all the libraries and no need for individual pip installs. First is that true? If yes how to get anaconda support in vs code? Of not, is there a shorter way to get all or most libraries in one go instead of one by one pip install into the venv?
@rajatdang8973
@rajatdang8973 Год назад
ImportError: DLL load failed while importing _cext: The specified module could not be found. I am facing this error in the end what shall be done
@abhisheksaini7973
@abhisheksaini7973 2 года назад
If you are still having errors after performing everything then , actually python 3.9 and 3.10 might have some issue installing libraries, so try installing an older version like 3.8
@georgemanuelajan8263
@georgemanuelajan8263 2 года назад
hey i think i have this problem because after doing all like the video python still say me that he don't find matplotlib, so how can i install an older version please ?
@roshanleanage1275
@roshanleanage1275 2 года назад
You are spot on !!! I had this problem with installing pandas in 3.9. Once I went back to a older version everything was working....
@synaxreader9326
@synaxreader9326 2 года назад
@@roshanleanage1275 Which version did you go back to?
@science9606
@science9606 Год назад
If I make pip install another module it does not install in the venv folder (it always installs in the Python folder under Programs (Appdata)).
@rishabhyadav187
@rishabhyadav187 Год назад
Bro i am having a problem .. turtle graphic screen is not visible on screen in vs code. as i am running my program that graphic screen comes for mili second and then disappears . plz help
@burakt
@burakt 10 месяцев назад
You explained it really well. Thanks a lot. So can we do this for the R language as well?
@hectorpeaceful2341
@hectorpeaceful2341 Месяц назад
I reach a point in my programming career where I watch some indian guy fix my problems with his indian magic Congratulate me
@varunrao9311
@varunrao9311 2 года назад
not working on mac, how do i go about this
@itsandroler6996
@itsandroler6996 2 года назад
How to fix this error? Error: Command '['E:\\Visual\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 101.
@yasminadjebbara7793
@yasminadjebbara7793 2 года назад
THNXXXX I HAD THE ERROR AND CORRECTED IT FOLLOWING THE STEPS IN YOUR FIRST COMMENT ^^
@berkatan9145
@berkatan9145 Год назад
The library is install in the project folder not on the whole VS Code to use libraries on any project
@ramanandgupta429
@ramanandgupta429 3 года назад
I had install scikit-image but gettutg that error - DLL load failed while importing _remap: The specified module could not be found.
@bilalbsdk9020
@bilalbsdk9020 2 года назад
bro i have one issue i am not getting the venv file name on my project list though the file is created bro please solve it
@junaid_qadir
@junaid_qadir 2 года назад
How can I solve this problem? venv\script\activate : The module 'venv' could not be loaded. For more information, run 'Import-Module venv'. At line:1 char:1 + venv\script\activate + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (venv\script\activate:String) [], CommandNotFoundException + FullyQualifiedErrorId : CouldNotAutoLoadModule
@raianmr2843
@raianmr2843 2 года назад
You don't have to spell out the entire path of the venv folder. You can just type ".venv". This works because '.' is macro for current working directory's absolute path. So, the command should be "python -m venv .venv". Another tip: if you're on Windows and you’ve used the official python installer, there should be a py.exe in your system path. You can use py the same way you use the python exe, it's purpose is to automatically select the most up to date python installed on your system. This isn’t relevant to the video as much but I thought this was something everyone should know.
@frydoichmarwienanta4760
@frydoichmarwienanta4760 2 года назад
tq i got acces denied so many times until use the venv .venv haha
@froopi2
@froopi2 2 года назад
@@frydoichmarwienanta4760 same
@mw7185
@mw7185 Год назад
What do you mean by system path ?
@deephalder5763
@deephalder5763 Год назад
Thanks bro...
@mrinaltaduka4545
@mrinaltaduka4545 Год назад
Error: Command '['C:\\Users\\Pc\\Desktop\\family\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1. PS C:\Users\Pc\Desktop\family files\mrinal\Python> it is showing this error can you help me out
@SrellaAnada
@SrellaAnada 11 месяцев назад
im already installing the library but why it still showing problems?
@anokhautomation4453
@anokhautomation4453 3 года назад
Can you check is it possible to install micropython machine module in python?? When I tried, it shows error. How to solve??
@justlikethat1726
@justlikethat1726 2 года назад
Isn't it working now ? As I am unable to create venv folder inside my local python file folder ?
@gerrardandeminem
@gerrardandeminem 3 года назад
Nothing happens after I do python -m venv "path" ..
@Katreen-ec6is
@Katreen-ec6is 11 месяцев назад
Even after the venv file appeared the (venv) in the terminal did not , what is the problem here ?
@gergeter3836
@gergeter3836 3 месяца назад
how do you connect, when I connect com3 to arduino, it deny me to access it with Python. tks
@antoniotonisi2419
@antoniotonisi2419 3 года назад
my vs code stopped working (doesn't execute codes) after I closed and opened it again, what do I do?
@aollepiacegiocare8566
@aollepiacegiocare8566 2 года назад
How do i enter my venv. In terminal after already created the folder?
@rikinosi
@rikinosi 2 года назад
After I have typed the command "python -m venv ..." and hit enter, I got a message that said "Python sa nena". The venv folder does not create and installing module does not work Pls help
@bhagyashriamle5948
@bhagyashriamle5948 2 года назад
bro plz tell me how to solve pip regarding problem because pip is not show in my system and i want to install django so plz help me.
@rajivkumarojha5250
@rajivkumarojha5250 2 года назад
Hi Aditya, i am getting following error. The term 'phyton' is not recognized as the name of a cmdlet, function, script file, or op erable program. Check the spelling of the name, or if a path was included, verify that th e path is correct and try again. At line:1 char:7 + phyton
@nalat1suket4nk0
@nalat1suket4nk0 2 года назад
Because thats not how you wright python😂
@comedeveze3383
@comedeveze3383 2 года назад
how do we have the terminal button in the bar at the left? Thanks
@galactus4829
@galactus4829 Год назад
thank you so much bro this helped me a lot. love the way you make understand. thanks a lot 😀
@bionic3604
@bionic3604 3 года назад
i type in your code and it doesn't creat the virtual envrioment
@sanketkalokhe3548
@sanketkalokhe3548 3 года назад
how should i get the dropdown buton i have python install already but i can't see that button
@anandar3953
@anandar3953 3 года назад
Simple and clean no messy things thanks bro
@PotassiumLover33
@PotassiumLover33 2 года назад
I got the virtual environment to work, but tried installing pyautogui and it still doesnt work, the import is still failing :(
@jrrr92-fx
@jrrr92-fx 2 года назад
this tutorial was what i was looking for thank you !!
@vitorgarcia3837
@vitorgarcia3837 Год назад
to install the library, am i user always the "pip"?
@Jacob11227
@Jacob11227 3 года назад
why is it still saying at the end that there is no module named "module name" even after all this
@ebonyphantom6977
@ebonyphantom6977 3 года назад
Same didnt work for me.
@nabink9956
@nabink9956 2 года назад
Great video! It really worked out for me. Thanks for making very short and sweet
@henryzhang3097
@henryzhang3097 3 года назад
I couldn't get it, you simply went and made a new terminal and (venv) popped up. On mine there wasn't. Was there more that you cut out or was that it, because no work.
@vnisfshir1438
@vnisfshir1438 3 года назад
The execution of script probably is disabled
@lovis1188
@lovis1188 3 года назад
@@vnisfshir1438 how to i enable it?
@lovis1188
@lovis1188 3 года назад
"py -3 -m venv .venv" this has done the trick for me
@vnisfshir1438
@vnisfshir1438 3 года назад
@@lovis1188 ayy havent been using vscode for a while tho need to catch up a littl
@melanybarboza1521
@melanybarboza1521 2 года назад
I get an error Python was not found how can i solve it?
@vicwillis4295
@vicwillis4295 3 года назад
OSX users, what did you do to get this going?
@manray8513
@manray8513 3 года назад
you can't do that too bro? I write all code but the graph doesn't shows up
@SteveOkyere-Gyamfi
@SteveOkyere-Gyamfi 9 месяцев назад
Thank you very much. Your video was very helpful
@nikitha28
@nikitha28 2 года назад
Hello, Thank you so much for the content. I was really struggling with installation. This video really helped me out. 😄😄
Далее
История Hamster Kombat ⚡️ Hamster Academy
04:14
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Просмотров 1,6 млн
Python Workshop - Installing Packages
10:34
Просмотров 141 тыс.
How to set up Python on Visual Studio Code
6:57
Просмотров 887 тыс.
How To Install Python Libraries In PyCharm
3:07
Просмотров 46 тыс.
How to Set up VS Code for Data Science & AI
22:53
Просмотров 310 тыс.