How to install Python Libraries in Visual Studio Code

preview_player
Показать описание
This video is a quick tutorial on how to import Python Libraries when using Visual Studio Code.

I had been trying to figure this out for myself but could not find good tutorials on the internet so thought I should make one. For the purpose of this video, we'll use matplotlib in python as an example.

Timestamps:
0:00 Introduction
0:25 Create and open a New Folder
0:59 Problem Description (matplotlib as an example)
1:33 Create a Virtual Environment in Python Project
2:18 Resolving the import issue (pip install)
2:48 Run the program
2:57 Conclusion

----------------------------------------------------------------------------
Hey!
I am Aditya Thakur, a Developer and Designer. I make videos on Flutter, Python, and other technologies. I also sometimes take up Profile Building and entrepreneurship!

📚 PROMOS
Get an exclusive 10% discount on every GeeksforGeeks course!!
Use code: ADITYAT

💰 INVESTMENT APPS

Want to talk business? Or ask a question?
----------------------------------------------------------------------------

Become a part of my community! (100+ Developers already 🥰)

Thank you for watching!
Hope this video helped you.

Leave a comment and do Subscribe the channel. Cheers!
Рекомендации по теме
Комментарии
Автор

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: before executing "venv\scripts\activate"

robertruta
Автор

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!

marceloquesada
Автор

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

johnreskusich
Автор

Thank you so much! I have been searching for an easy to follow explanation like this for so long!

jeff
Автор

man, this is perhaps the best (the shortest and brief) video to solve the problem. thank you very much

noiiz
Автор

Thank you for a well produced straightforward tutorial. Learned what I needed to without all the bs. 👍

KimJong_Dong
Автор

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.

chrisjones
Автор

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

durb
Автор

thank you so much, I browsing for hours until I found your tutorials, , , very simple to solve the problem

Userisnmuh
Автор

Thank you, I been trying to do this for 2 days . Watching your video I finally figure it out..Thanks

earlsandersjr.
Автор

thanks a lot, I spent nearly a week and tried many ways but nothing actually happened until I followed your instructions. Many

huynna
Автор

Thank you so much for your video sir.I was looking for this for hours.Finally I got it

nithyalakshmigurupackiam
Автор

Great video! It really worked out for me. Thanks for making very short and sweet

nabink
Автор

I been stuck like almost 3 week until I saw this video, THANKS

carlospincheira
Автор

Simple and clean no messy things thanks bro

anandar
Автор

Awesome Aditya, thanks for this short and simple video, but very valuable one :-)

rsivakanth
Автор

Thanks man, I have been trying to find the solution almost all day but this one thing cracked it for me finally! :)

patrickkutal
Автор

Hello, Thank you so much for the content. I was really struggling with installation. This video really helped me out. 😄😄

nikitha
Автор

Yess thank you! exactly what I was looking for!

danielhornsby
Автор

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

pumkinkidd