My Python Development Environment Setup - Full Tutorial

  Рет қаралды 207,214

Tech With Tim

Tech With Tim

Күн бұрын

Today, I'll share with you how to set up your Development Environment for Python Code. These are the setups and environment that I recommend you use on a daily basis.
💻 Thanks to Linode for sponsoring this video! Get a $100 60-day credit when you sign up with a new account from: linode.com/techwithtim
Download Anaconda: www.datacamp.com/tutorial/ins...
Add Anaconda To Path: www.datacamp.com/tutorial/ins...
Download VSCode: code.visualstudio.com/
💻 ProgrammingExpert is the best platform to learn how to code and
become a software engineer as fast as possible! Check it out here: programmingexpert.io/tim and use code "tim" for a discount!
⭐️ Timestamps ⭐️
00:00 | Intro
00:44 | Linode
01:45 | Virtual Environments/Anaconda
10:10 | Code Editor/VSCode
13:45 | Formatters
16:15 | Autocomplete/Intellisense
18:15 | VSCode Extensions
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
👕 Merchandise: teespring.com/stores/tech-wit...
📸 Instagram: / tech_with_tim
📱 Twitter: / techwithtimm
⭐ Discord: / discord
📝 LinkedIn: / tim-ruscica-82631b179
🌎 Website: techwithtim.net
📂 GitHub: github.com/techwithtim
🔊 Podcast: anchor.fm/tech-with-tim
🎬 My KZbin Gear: www.techwithtim.net/gear/
💵 One-Time Donations: www.paypal.com/donate?hosted_...
💰 Patreon: / techwithtim
◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
⭐️ Tags ⭐️
- Tech With Tim
- Python Development
- Coding
⭐️ Hashtags ⭐️
#techwithtim #developer #python #howtolearncoding

Пікірлер: 105
@TechWithTim
@TechWithTim Жыл бұрын
Looking to learn Web 3 and Blockchain development? Check out my new course: algoexpert.io/blockchain - use code "tim" for a discount!
@ExcelInstructor
@ExcelInstructor 5 ай бұрын
How can I check my Python code step by step like in VBA?
@gvikram18
@gvikram18 Жыл бұрын
Exactly what i needed to get into python development after couple of years. Thanks Tim
@uch195
@uch195 Жыл бұрын
this is exactly what i needed to start development after getting stuck in fancies for 12 hours, big up, keep the good work.
@jolenebett5043
@jolenebett5043 Жыл бұрын
Thank you so much for explaining this, I've been struggling all week to understand environments and just got even more confused, this has helped greatly.
@nilutpaldas8336
@nilutpaldas8336 Жыл бұрын
Much needed video, as I'm starting my data science journey, and I'm looking for complete setup from conda to vs code.
@fawadmahdi
@fawadmahdi 6 ай бұрын
This was indeed very useful. Made all the environment variables stuff easier to understand and finally being able to run python within command prompt
@jeffzxy
@jeffzxy 6 ай бұрын
Very good video! covered all questions I had for using VScode for python! Thanks Tim!
@psd993
@psd993 Жыл бұрын
As a general rule, please try to avoid mixing conda and pip. It may not be much of an issue in this case, but i've been in datascience courses where the instructor did that... and later on it turns out conda can't keep track of the dependencies for things installed by pip and if you accidentally end up updating packages with conda, it breaks your environment.
@19bitmusic
@19bitmusic Жыл бұрын
Came here to say this.
@ahnafalislam7155
@ahnafalislam7155 Жыл бұрын
Can I install pytorch with pip and install the packages with conda only? My conda gets stuck in the "Solving Environment" stage for eternity, it installs so much easier with pytorch.
@AndrewMakarskiy
@AndrewMakarskiy 3 ай бұрын
Why not just using the elegant pyenv? It takes care of pip, dependencies, python version
@tennotsukai87
@tennotsukai87 Жыл бұрын
Perfect instructions for what I've been looking for. Thanks.
@TheKristenLFoster
@TheKristenLFoster Жыл бұрын
Super helpful -- thanks for sharing this with us, Tim!
@blubehriluv
@blubehriluv Жыл бұрын
You always post at the perfect times Tim! Wanted to add for anyone that is having issues with python/conda --version. Make sure to restart your CMD shell before running those. After installing VS Code, it says, "Add to PATH (requires shell restart)" so I assume that would've been the same case for the CMD. After intalling conda/python I received the error (can't find python or conda even though the where command worked perfectly), and after double checking my environments, I saw they were properly added to PATH. I just needed to restart my CMD.
@mac6
@mac6 Жыл бұрын
haha wish I saw this comment before I spent ages confused lol
@bairreg
@bairreg Жыл бұрын
Great useful video, thanks Tim.
@phaedrus2633
@phaedrus2633 Жыл бұрын
I'm 64 years old, and I'm glad to see a young guy like yourself passionate about computers. I was fortunate, that just when I was leaving the Air Force, the PC craze was just starting, so that I was able to get in on the ground floor. Unfortunately, I made my living through other trades. I freely admit, I don't pick up concepts as fast as I used to, and you have pretty compact, and very efficient way of communicating. However, you seemed to have left a big hole in the Anaconda concept by not explaining thoroughly how to add a different version of Python in a virtual environment. I tried your suggested conda create --name programmingexpert python=3.10 method, and it didn't work. So, I watched another KZbin video and learned that it can be done by a much simpler, and more generic way of conda search python, for all of the newer, and older versions Python. Then, there are channels that Anaconda can use, such as conda search -c conda-forge python. I'm wondering, if that's what you meant: conda search -c programmingexpert python?
@jango9973
@jango9973 Жыл бұрын
I had to go back one revision. I have 3.11 installed but I could only create a conda env with 3.10...which wasn't installed. He did the same in the video where he had 3.10 installed but installed conda for v3.9
@Scrungge
@Scrungge 11 ай бұрын
Perfect introduction. Thank you!
@Kol1bri
@Kol1bri Жыл бұрын
Thank you very much for this Tutorial!
@ML_Minded
@ML_Minded 8 ай бұрын
hey @TechWithTim, Thank you for your video, It help me solve my env issue.
@jrgenolsen3290
@jrgenolsen3290 Жыл бұрын
Very good tutorial... your choosing VS code is a gode idea because every language (almost) are supported in VS code...
@AnkurMH30
@AnkurMH30 Жыл бұрын
Following Your Videos From Basics 😌❤️
@techmentormaria
@techmentormaria Жыл бұрын
Omg I'm relearning python (last time I used it was 6 years ago) and this has been so helpful. Thank you!
@prashlovessamosa
@prashlovessamosa Жыл бұрын
Thanks brother anaconda stuff help me alot i am a beginner thank you
@hugohebert3036
@hugohebert3036 Жыл бұрын
You're an absolute legend
@jannatgaoshiqqalb3598
@jannatgaoshiqqalb3598 Жыл бұрын
great good luck Tim!
@yahia_dua
@yahia_dua 6 ай бұрын
Pretty clear thnk u🎉
@realCleanK
@realCleanK 8 ай бұрын
Thank you!
@christian37ism
@christian37ism Жыл бұрын
I use virtualenv to create virtual environments and it works just fine. Even though I have conda installed.
@LawOfNewton7
@LawOfNewton7 6 ай бұрын
youre a godsend
@chrism6880
@chrism6880 Жыл бұрын
What made you choose Anaconda for env management over something like pipenv?
@sambad8429
@sambad8429 Жыл бұрын
What do you think about poetry for creating python packages?
@GrumpyDave1
@GrumpyDave1 7 ай бұрын
Great content although I did find the comments even more useful. Great community.
@md.redwanhossain8822
@md.redwanhossain8822 Жыл бұрын
Anaconda is dedicated for data science. All python programmers do not do data related tasks. Also, the installation size is huge for no reason.
@lewessays
@lewessays 2 ай бұрын
you have other options... he is showing his own environment. I personally use poetry.
@punuravathsara
@punuravathsara Жыл бұрын
Nice Videos Love Your Videos👍👍👍👍
@TechWithTim
@TechWithTim Жыл бұрын
Thank you so much 😀
@ag-mor
@ag-mor Жыл бұрын
As always, I love your vids but at 13:25 the command should be ">conda activate robert" you can look in the down right corner that the enviroment didn't change. Sorry I couldn't help myself with that.
@jonathanlegendre279
@jonathanlegendre279 Жыл бұрын
Surprised to not see pipenv for the virtual environment section. It's great because it handles the dependencies for you (aka it'll install numpy when you install pandas because pandas needs numpy to work)
@yonimelki
@yonimelki Жыл бұрын
Agree, I think that poetry with pyenv is the best option rather than pipenv or conda
@akatrosh6519
@akatrosh6519 Жыл бұрын
I have a problem with this formatting, having the same dict as you, mine is formatted to be in 1 line. How to make it format like in your video? I'm using black formatter.
@paulhbartley8030
@paulhbartley8030 Жыл бұрын
At 8:00, you mention using pip to install modules into your Anaconda environment. This is not recommended. You should be using conda install within an Anaconda environment.
@ttuurrttlle
@ttuurrttlle Жыл бұрын
Thanks, this was a great video. I do have two questions about anaconda and virtual environments. Is there a recommended way to version control the virtual environments you've created in anaconda? At work I RDP into a server that multiple have access to and use python on, our virtual environments just use venv and are scattered around. Anaconda seems like the ideal solution to centralize, but I'd be worried about people accidentally updating/deleting environments. Second question, for some reason, when installing anaconda on a new machine for all users (in ProgramData) the option to add conda to the PATH was greyed out and disabled so I couldn't select it. Not sure why that is. (Edit, actually I was able to add it to the PATH afterwards manually, I thought it might not work cause the option was disabled)
@Milorae
@Milorae Жыл бұрын
I wish you would've talked more about why not pycharm. It does everything you have set up in video and I have yet to encounter any problems with it. It creates venv for every project, has auto completion, lots of extensions, formats code on save too, has terminal and package manager, tools for db, i mean it's a full package and does a great job at that. And it's also free.
@seatownrocks
@seatownrocks 5 ай бұрын
Why are we using conda? just to create a virtual environment? the commands to do so using venv are quite simple. is there some other reason to use conda? i only ask because conda is not activating the environment for me currently. it keeps saying, "CondaError: Run 'conda init' before 'conda activate' ". When I run "conda init" it says "No action taken" so the result is I cannot activate the created environment using conda. Do you know how to fix this conda issue? Thanks.
@AnotherAgnostic
@AnotherAgnostic Жыл бұрын
Do I need multiple versions of python? If so, how do I add them?
@emilkhojayev4645
@emilkhojayev4645 Жыл бұрын
When I type "conda" into cmd my terminal just freezes and doesn't return anything. I added conda to path what am I doing wrong?
@kasksahah
@kasksahah 28 күн бұрын
when i put "conda activate " it tells me to run "conda init" before, but when i do i just keeps repeating to run it before. what is happening? what do i do?
@tembomedia6902
@tembomedia6902 10 ай бұрын
Finally I learn what Anaconda is for...
@MaBuSt
@MaBuSt Жыл бұрын
For better or worse, Anaconda started charging large commercial users (>200 employees using the package managers) $15/user/month and lot of corporate users had to stop using it in their professional life. I don't think the charge is unwarranted given the convenience Anaconda has delivered to the data science community, but also medium sized corporations that look at software as a Cost Center don't like getting slapped with a new huge bill out of nowhere for something there are 'free' alternatives for (literally venv ships with python). Anywhoo. this is the can of worms that comes up anytime people do Dev Environment demos' (venv, poetry, conda, etc.)
@gusfring8333
@gusfring8333 5 ай бұрын
im using vs code on windows...when i change the interpreter version and run 'python --version' it always returns the base version no matter what the interpreter selected....example...in my Virtual env i have 3.10.12...but it returns base version 3.11.5....what could be the reason can you help pls? im having issues with installing opencv library...it always return could not build wheels
@Arkantosi
@Arkantosi 10 ай бұрын
So if you are at base env, then running 'conda activate newenv' does apparently not change the interpreter in VScode. For example I have the interpreters "Python 3.11.4 ('general': conda)" and "Python 3.11.4 ('base': conda)" installed. At start, only the base interpreter is chosen in VScode and at the bottom right corner I can see "Python 3.11.4 ('general': conda)", so all is well. Now, when I go 'conda activate general' it changes the environment but the text at the bottom right corner is still "Python 3.11.4 ('general': conda)". Do I always need to also manually change the interpreter when I programmatically change the environment in conda?
@yifeipei5484
@yifeipei5484 7 ай бұрын
please use cmd. The powershell has issues
@K0D0R0
@K0D0R0 Ай бұрын
5:00 How can you install packages into a “wrong” version if you are using virtual environment? Also, recommending anaconda just because you “used it for a long time” without at least explaining venv (which is built-in)…
@infinitespace1982
@infinitespace1982 Жыл бұрын
For some reason, I can't access aklearn, even though it has been installed in my environment
@CarlReef_Studios
@CarlReef_Studios 5 ай бұрын
what theme do you use?
@codewith7360
@codewith7360 Жыл бұрын
Tim, I have a small question "did you attend any undergraduate universities"?
@datamonster3212
@datamonster3212 Жыл бұрын
I don't like Anaconda as it messes with the system quite a bit. I prefer Pipenv for the virtual environment and Pyenv to manage multiple Python versions.
@fpark101
@fpark101 Жыл бұрын
How to deploy Python project with anaconda?
@johncastillo6574
@johncastillo6574 6 ай бұрын
I’m here because I want to start learning Python. I’m already lost. Is there some other video/ step I should watch/ learn before this? Complete novice here. Any information would be greatly appreciated.
@colin7270
@colin7270 6 ай бұрын
I'd recommend PyCharm CE (free) for a beginner.
@qman2852
@qman2852 Жыл бұрын
What are your thoughts on anaconda vs poetry?
@TechWithTim
@TechWithTim Жыл бұрын
I prefer anaconda, just what im used to
@lch80123
@lch80123 Жыл бұрын
After I added Anaconda to system path, my anaconda prompt started to have problem upgrading its conda version. I solved it by removing anaconda to system path so I am not sure adding that is a good idea or not (I used windows)
@KarolWasiluk
@KarolWasiluk 10 ай бұрын
Run Anaconda prompt as administrator.
@luis7486
@luis7486 Жыл бұрын
which color theme is he using?
@vamshidharkasulabada
@vamshidharkasulabada Жыл бұрын
how can i make conda(base) as not default while opening a new terminal
@jenss4083
@jenss4083 Жыл бұрын
as you formulated the question, I marked it pulled it in a new tab and got beautiful answers. Thanks for question
@hydradevs
@hydradevs Жыл бұрын
❤❤❤❤❤🎉
@maheshwaran8355
@maheshwaran8355 Жыл бұрын
what theme he using?
@mr.highschoollocksmith6080
@mr.highschoollocksmith6080 Жыл бұрын
Super annoying, I’m basically brand new to coding, I’m trying to set up my anaconda to python version 3.11 but apparently it’s just failing to find any packages needed for that, it did 3.9 super easy for obvious reasons, so am I correct in assuming anaconda doesn’t have support yet for 3.11?
@md.redwanhossain8822
@md.redwanhossain8822 Жыл бұрын
Python 3.11 released last month. Most of the python packages are not compatible with 3.11 now. Wait 2-3 months more.
@b857
@b857 Жыл бұрын
there is a free version of tabnine also
@inertmosaic2220
@inertmosaic2220 Жыл бұрын
Can you add environments using miniconda?
@infinikeys
@infinikeys 7 ай бұрын
Miniconda is Anaconda less ALL the packages for data science. Everything else works exactly the same.
@bryanstark324
@bryanstark324 7 ай бұрын
Is this really the best way?
@LibertyRecordsFree
@LibertyRecordsFree 2 ай бұрын
"'conda' is not recognized as an internal or external command, operable program or batch file." I just installed it so I am not sure what is wrong. Someone to help ?
@upliftingchristianmusic8534
@upliftingchristianmusic8534 9 күн бұрын
I think you have to add it to your path
@Chris-op7yt
@Chris-op7yt Жыл бұрын
so every time you load your program to work on it, you need to manually set python interpreter..every single time? if that's the case, that's kinda lame.
@TyrellJoanna
@TyrellJoanna Жыл бұрын
Emacs ?
@syednaqvi9212
@syednaqvi9212 Жыл бұрын
VS code is good but it's too laggy for slow computers. I'd prefer sublime.
@andreiarseni362
@andreiarseni362 Жыл бұрын
Second
@acobrapilot
@acobrapilot Жыл бұрын
Great overview, but Anaconda is too heavy.....
@cbbcbb6803
@cbbcbb6803 10 ай бұрын
When making these videos, do not say "on Linux, probably a similar thing". If you don't use Linux, then ask a friend what that "similar thing" would be. Then say it in your video. Otherwise, an extremely good video.
@RetoonHD
@RetoonHD Жыл бұрын
First
@chetanreddy533
@chetanreddy533 Жыл бұрын
first
@NP-zg3hq
@NP-zg3hq Жыл бұрын
Uninstalling anaconda, for pycham
@adamcaretta4715
@adamcaretta4715 6 ай бұрын
Black formatter just puts spaces in for me, it won't put things onto new lines like your dictionary did
@sleepystonedmonk
@sleepystonedmonk Жыл бұрын
Linux is missing in your development environment ;)
@nascentnaga
@nascentnaga 11 ай бұрын
conda OUT poetry IN
@jango9973
@jango9973 Жыл бұрын
"VEN V." hahahaha, venv = virtual environment
@thestopper5165
@thestopper5165 Жыл бұрын
One quibble: VS Code will NOT list 'every interpreter'. It studiously ignores pre-Python 3 - it 'finds' envs that use a pre-Python3 interpreter, and then removes them from the display as you watch. So anyone whose code base includes projects written in Python 2.7 (say) is outta luck - if you want to use VS Code, you've got to refactor everything. For anyone who had been writing Python of any complexity for ten years, this involves refactoring literally tens of thousands of lines of code. (Just the 'print' statements FFS). Or... just don't install VS Code: 'free' is costly if it doesn't do the most basic job. *inb4* "Python 2.7 is no longer maintained" - so what? There are tens of thousands of code-bases across the globe that are written in the compsci equivalent of Etruscan - and _those_ have to be maintained. VS Code is typical Microsoft dreck: a bewildering array of 'features' that most users will never use, and guaranteed to let the user down when it matters.
@protopan7722
@protopan7722 Жыл бұрын
It's pronounced as Jinja not Jenga 😂
@sarahasad8707
@sarahasad8707 Жыл бұрын
😂
@andrub23
@andrub23 Жыл бұрын
Can someone in youtube world, anyone, concoct some new way of presenting "advertisers", supporters or whatever word you choose to represent them.
@user-hn1cy5ee5l
@user-hn1cy5ee5l Жыл бұрын
most powerful ide for python is pycharm, vs code sucks
@arunsandhu777
@arunsandhu777 7 ай бұрын
I don’t find windows comfortable…
@akshattamrakar9071
@akshattamrakar9071 Жыл бұрын
I have a better answer "use poetry"
@rainerzufall889
@rainerzufall889 4 ай бұрын
anotherone thinks windows is standart....
@jparks6544
@jparks6544 4 ай бұрын
VSCode? Seriously?
@wilamshields
@wilamshields 6 ай бұрын
Desperately trying not to use expletives, but these instructions are incomplete
Powerful VSCode Tips And Tricks For Python Development And Design
15:50
The Noodle Picture Secret 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 29 МЛН
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 2,8 МЛН
PINK STEERING STEERING CAR
00:31
Levsob
Рет қаралды 21 МЛН
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 84 МЛН
The Complete Guide to Python Virtual Environments!
15:52
teclado
Рет қаралды 327 М.
C++ Developer Learns Python
9:26
PolyMars
Рет қаралды 2,7 МЛН
Why I Ditched VSCode for Webstrom @JetBrainsTV
3:21
Dev Panda
Рет қаралды 2,6 М.
How to Setup Your Python Environment (With VSCode & Anaconda)
11:31
RichardOnData
Рет қаралды 4,3 М.
Anaconda (Conda) for Python - What & Why?
26:10
Academind
Рет қаралды 218 М.
What To Learn To Become a Python Backend Developer
10:42
Tech With Tim
Рет қаралды 175 М.
My Visual Studio Code Setup for Web Development
15:22
ForrestKnight
Рет қаралды 1 МЛН
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 365 М.
How To Make Your Boring macOS Terminal Amazing With Alacritty
16:33
Josean Martinez
Рет қаралды 109 М.
The Noodle Picture Secret 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 29 МЛН