You MUST WATCH THIS before installing PYTHON. PLEASE DON'T MAKE this MISTAKE.
Ойын-сауық
A beginner's guide to installing python. I show you how to use virtual environments in python. This is something that isn't taught in most beginner courses, but it's really useful.
3 Data Science Learning Platforms I would recommend
1. Data Quest - bit.ly/3hcLjbY (my favourite)
2 Data Camp - bit.ly/39erDk8
3 365 Data Science - bit.ly/3hbUHdd
2 Recommended Python Courses
1. Exploratory Data Analysis with Python and Pandas - bit.ly/2QXMpxJ
2. Complete Python Programmer Bootcamp - bit.ly/2OwUA09
Data Science Interview Preparation
StrataScratch bit.ly/30ul0nX
(These contain affiliate links, which means I receive a percentage of any sales made. There is no additional cost for anybody clicking on them)
👌 SUBSCRIBE 👌
/ @gilesmcmullen
/ gilesmcmullen
Пікірлер: 653
Get my two python courses for just $10 here bit.ly/2JuehGa . Use discount code CF903251D5
@colinharvey1049
3 жыл бұрын
Are these courses different to the udemy course?
@ShailjaGupta16
3 жыл бұрын
Hi Giles, Do we need to install python every time we want to set up a virtual environment?
@mohammadrafivulla8368
3 жыл бұрын
No@@ShailjaGupta16, you can use the same "python"(that you have previously installed) to make any number of virtual environments you want, by just including the same path for the "python". But you need to install it every time there is a newer version of python available or when you need an older version, say for some old project that you have cloned...
@ReaalBadman
3 жыл бұрын
Jokes aside ... do u hack?
@bjornhudson1699
2 жыл бұрын
I dont mean to be offtopic but does anyone know a method to get back into an Instagram account? I was stupid lost my account password. I appreciate any assistance you can offer me.
Your shirt confused me more than python
@ZakariyeMaxamed1
4 жыл бұрын
😂😂😂
@geraldknowles519
3 жыл бұрын
wow! you dumb then
@stopcheatingconsumers9779
3 жыл бұрын
LOL
@brawnyvenky9584
3 жыл бұрын
yes there are lot of virtual environments on his shirt, like containers inside a docker.
@lifewithceecee9035
3 жыл бұрын
🤣🤣🤣🤣
Thank you so much for sharing this. I've been developing command line, desktop and web software over years on Linux and Windows, and have been thinking about which machine learning/ IoT project to launch into next, but have paused this development knowing python and library versioning issues could create more grief than I'm ready to deal with. Your tutorial on virtual python environments may be a game changer for me, as now I can continue development without these roadblocks derailing my efforts!
“If you’re about to install Python for the first time, you’re almost certainly, gonna do it wrong.” This man understand me.
@jetspray3
2 жыл бұрын
And then somewhere in the video he said do not select the option to set path for those who download python before but he left the first timers confused.
@ilkkuPvP
Жыл бұрын
@@jetspray3 Should I select the PATH option. First ever time installing Python3 (any python) EDIT: I googled and people say if I select PATH it will let me use just "python" in command prompt and I don't need to use "c:/.../.../.../python...". So I think it's better to select PATH?
@heinrichhelmbold419
7 ай бұрын
You still got it all wrong... You installed on Windows and not Linux 😜 Linux is a completely different maze and would love to have a full tutorial on setting up virtual environments with libraries on Linux
Me: watching how to install python Python Programmer: let's play the ukulele
Learned it the hard way. Cloud based solutions are also good for this. Anaconda offer the possibility of setting up multiple environments as well.
FINNALLY!! not just another super technical "introduction" striped of high level illustration of what the topic is about. thank you for keeping it dumbed down for a set amount of time before introducing abbreviations after abbreviations
I thought you were going to talk about Anaconda but still was a great video, I didn't know you could create venvs without modules or conda.
The bit with the ukulele cracked me up. Maybe I should too bring my piano up whenever I install something X'D
@ruanerwee394
3 жыл бұрын
I sometimes do
Heyyy Love from India 🇮🇳 If you happen to come to India or need a break from your routine, I will be glad to host you.
Taking your Python course in Udemy is a good decision I made toward learning data science. Thank you for sharing your passion to teach and inspiring people like myself to learn computational thinking and Python.
@jamespaz4333
2 жыл бұрын
Hi there. Could you please mention what is the name of that course? Thank you
Incredible how you combine Maxwell's equations, playing a ukelele during installing python!
@tj9382
3 жыл бұрын
Incredibly perplexing
@mikemikel1629
2 жыл бұрын
Made it so much more interesting :)
Thank you I really appreciate you providing that tip to help version control. You walked thru things and they made perfect sense and simple to do. Greatly appreciate it.
this was immeasurably helpful. other creators glaze over all of the finer details of setting up python and I wasnt even able to install libraries, and now i can. thank you so much for this video!
Makes sense, never got that far with projects, totally watching later, thanks mate! :)
yayy you're back!! Thank you for the video. Looking forward to more to come! :)
OMG! This is sooooo helpful! I have experienced the conflict issues in the past working on my own projects when first learning. Thank you!
Ooooh, love the whiteboard with Maxwells equations in the background :)
OH MY GOD!!! I WAS JUST INSTALLING PYTHON AND YOU HAVE BLESSED ME!!!
Thank You. 👍🙏. I’m glad that this is now installed on my computer before I start making projects. I still have difficulty understanding VE, but it will take me some time to learn it
Welcome back-- missed the videos
Thank you so much for the video. I had such conflicts you mention. I was told to use anaconda instead, to manage the packages. Do you think your method is best than using anaconda? What would be the advantages/disadvantages of your method above anaconda? Thank you in advance
Thanks for this video, still in the middle of watching it but I wanted to say that in case I forget which I usually do. I've been dabbling with python for months now and I would have to say this is probably one of the biggest lapses in my self Learning Journey.
@iamstevenadam
2 жыл бұрын
It means he solved your problem?
This was definitely one of the pieces of the puzzle that I've been missing! Thank you so much!
Do you save your project files corresponding to 'my_env' in 'pyproj\my_env', 'pyproj' or 'pyproj\my_env\Scripts'?
In your course - do you give directions / advise on setup from the complete beginner? It would be even better if you explain how to do this with MS Visual Studio IDE
The ukelele tutorial really helped with my ADHD, this is probably the first time in my KZread history I watched a KZread video without tuning out and rewinding. Please consider keeping it if you haven't already. Thanks
Great video, thanks. It would be a great help if you could do a followup video on how to package and deploy to production server once Python project is done.
Such a practical and logical install, as it should be done mate, thanks a lot, this will help me a lot with the famous python interpreters
Some Maxwell’s equations in the background, cool :) Cheers!
That was fantastic, thank you. Just what I was looking for.
Great stuff Giles, I like your whacky style - and also Maxwell's equations!
The title is a bit misleading. You nailed some early frustrations when first learning Python that are not clear coming from using other package managers. I should note that virtual environments are great from a development perspective, but moving that to a deployable for systems on a network without going through pypi is still not well explained or documented, and to be frank shouldn't need to be. What I'd prefer is a simple command and clear standard to package the venv completely with the deps in it as the installable package. I think wheels is trying to fill this hole, but it still feels way more esoteric than it needs to be if not following the "put it on pypi" norm you see on tons of tutorials.
This literally happened to me, so glad I saw this
How did I not find you yet? I am a subscriber now, and also a fan of your videos. Thanks!
Thank you, very clarifying explanation on Python's virtual environments. The ukelele is great but I prefer the guitar. Maxwell's equations are also great but Einstein's General Relativity equations are more appealing ;-) (I don't mention Schrödinger equation because, in spite of its practical success, it is "probably" wrong :-D)
Hello Giles, thank you so much for this video. What an amazing video! I've never saw it anywhere else.
good strategy with the ukelele for "wait times", I usually check something on the web and then forget to ever come back. An instrument provides a diversion with a limited amount of options. I'll run out of chords/song fairly quickly and then remember to get back to work.
Use miniconda , simple yet effective . Learned it hard way when most deep learning models don't have compatibility with tensorflow 2+
@meghranade5223
3 жыл бұрын
A software like Flask may only work with certain versions of python packages & not others - hence one installs Flask in a virtual env ('sandbox') with all the dependent packages. Of course, another sandbox can be created for another software. Does miniconda allow you to do such? I have no experience with it, just asking.
Got a question, I don't remember how I installed it last time since it was a year ago but I probably made similar mistakes that you did, I didn't set it up on my vscode either, then when I had a python file there and wanted to run coverage or similar tests, I got a wrong command error as it likely was the python problem since I had it in 3 different folders somehow. I have uninstalled it and removed from PATH including my IDEs that use it, now I wanted to reinstall it, should I do it your way then just install vscode again, somehow set it up, will it work like that or should I just default install and tick the add to path option?
I wish I had this video when I started with python 10 years ago. At the time I recall it was more complicated than now, or at least that was my feeling.
Hi, Giles, I am a python begnner and thanks a lot for your great advice. I've seen many of your videos about best python books you recommended and I've bought some of them including and etc.. Your playing piano and ukulele is very cool , and I love music as well even I hope to learn some music analysis ,composing, gaming by machine learning in the future if possible . Have you ever set up some projects about music?
Thought this would be about managing multiple versions of Python in an OS (e.g. pyenv) It seemed like you want to have a completely separate installation of Python for every project to be made, potentially installing the same version several times for each project. Isn't that kind of... janky?
This may be obvious to most, but can you comment on this virtual environment and where you would store your actual python code files. Would it be in this "pyproj" folder or a subfolder. Would you just add git to this folder that has the python code files? And last can you talk about how you would update python to the next version with this approach? Thanks so much great video.
@dentn462
2 жыл бұрын
EXACTLY he helped abit bit he is not being specific about it which makes it extremely confusing
Awesome, step by step, well done. I've installed python, thank you
Thanks for this. The ukulele segment was exceptional lol
If pip and or python aren't recognized in spite of re-installing Python over and over, try this.. Move the path variables for those up to the top of the path list. For me, there was a bad path somewhere in an old path setting that was being found first before my new path entry was found and thus the new path setting was ignored. Using the Move Up button, I moved my new path settings for Python and Python\Scripts up to the top of the list and problem solved!
If you use a code editor instead of the command prompt do you still need to use virtual environments?
I installed python in D driver, saved some basic projects and it can be a little confused. Should i uninstall and rearrange everything
Virtual environments are, indeed, important to use when you're doing Python development. But, they are not part of "installing python" - they're part of using python. This strikes me as clickbait.
@SoorajAntony007
4 жыл бұрын
FINALLY! Someone called it what it is. I was hoping this guy would give me idea/hint to help optimise serverless scripts. But meh
@Tomifella
4 жыл бұрын
I assume you're an experienced python programmer. I don't see it as a clickbait. It is an important part of beginner training which most trainers omit. I find this video useful
@FredMny
4 жыл бұрын
Well, he said to watch it before installing Python... I understand your point, but as a beginner I think it is a valid point to be presented right from the beginning.
@vingcon
3 жыл бұрын
@@SoorajAntony007 this was a very helpfull hint and helped me to avoid wasting even more time with some broken python projects!
@thefuecisla
2 жыл бұрын
I think you are wrong sir, because if you install Python with Anaconda it installs it under a general folder -not named after the Python version- which as a newbie makes things more complicated if you are to prepare for the futureand need to work with different Python versions. In my opinion paying attention to the folder you install Python in and naming it with the version number is a very wide decision. That only from the installation point of view. If then you add all the advice regarding virtual environment this video is GOLDEN.
Back in the day we had to deal with MS dll hell. Library dependency hell has kept me from embracing Python in this day and time although early on I did use Python to create a quick and dirty embedded calculator in an enterprise Java application. Virtual environments seems to offer a clear path to ML and deep learning. A useful adjunct to data science in R.
if you wanna get even more advanced, try using pyenv and poetry for managing python versions and packages, it's comfy
This is great advice.. Best to get into the habit from the beginning.. Also makes it super easy to deploy to heroku and so on as you can freeze the requirements to a text file
Great video and I learned something today! Trying to figure out how I can implement at work with dozens of Python scripts running on a remote desktop (or laptop) - we'd need the virtual environments setup on THAT machine, no? Windows machine runs all the scripts via Task Scheduler
Do you have any experience or recommendations regarding running projects in environments on Linux systems? For example, a project that continues to run while you go on with other work. The same project would need to be launched in the environment even after the system was rebooted.
@scurvofpcp
2 жыл бұрын
Learn shell scripting. My advice for anyone doing python on any OS is to learn how to set your Environment variables with shell scripts, and keep in mind that python packages don't always play nice with your lines.
Came here for ukelele lessons and now I'm a software engineer somehow
This is a great introduction for people who are just getting into python, but don't don't want to step into the world of Anaconda etc, which seems to add more complexity. Speaking from experience. Thanks!
Danger! Warniing! Danger! Warning! This video includes a maniac playing his ukulele. Enter at your own risk. Switching off your computer provides temporary protection. Reboot at your own risk.
Your videos are amazing. Thanks for sharing your knowledge!
i wish i could try what you're doing there myself but my ukulele is not even tuned correctly atm
Finally, a new video after a long time. I wish you had brought out this video when I was installing Python but batter late than never. By the way, nice design on shirt :-)
Great stuff! Thanks. But how do we keep track of the many virtualenvs and the packages in each one of them?
Thank you! 10 years of wanting a functional Python env and in 20 minutes, viola!
Wow, that was super helpful. Thank you!
Awesome - just signed up for the Udemy course !
Thanks Giles :-) Been coding python for over a year now for several projects, some application based, some POC projects. Wish I knew this before I started, would save a lot of package bloat. However just have a new PC so decided to set it up this way - brilliant:-)
@DavidsonLoops
3 жыл бұрын
Hi, I'm completely new to Python, I have a Mac so i haven't implemented what Giles said in the video yet but I'm a bit daunted that I don't even understand the problems people are bringing up in the comment section, like how to integrate this with anaconda, how to keep track of the venvs and the packages in each one, someone said it was confusing because they installed it to a certain drive in windows (dont understand why and dont understand its implications for Mac). Where do i even start?
@daverei1211
3 жыл бұрын
@@DavidsonLoops just take your time, work on little bits and expand your skills. I’ve found googling errors can be the best ways to find solutions. And welcome to a new wonderous world where with time and persistence you will be able to do almost anything.
@DavidsonLoops
3 жыл бұрын
@@daverei1211 Thanks, im just gonna use anaconda for now i think. im going through Giles's python course now and then going to start with projects, any quick tips on how to think in python instead of thinking yeah i know what these different aspects of python are but dk how its relevant to the problem
@daverei1211
3 жыл бұрын
@@DavidsonLoops First up, have some kind of goal, start small and build it up. Learn how to use print statements to report on the status of things (really helpful in troubleshooting). And where you find that you have a section of code that you want to call more than once, rather than duplicating that code, put it in a module and let it return at the end. Don’t be afraid to experiment, be patient with troubleshooting. Enjoy the power lists and dictionaries give you.
Just found your channel and Im delighted. Older coder here not too excited by the newest languages but came across all the uses for Python and had a look here first. I'm grateful you did these videos. Thanks so very much!
Really regret discovering your channel so late. Absolutely love the pace at which you speak and the interludes. Nonetheless coming here to sharpen my python skills.
Ah, me learning DOS as a kid has finally come to a head. My first day using python. I get it now. I understand. This is cool.
Wait. I'm really interested in knowing why are Maxwell's Equations on the board.
@zetlam
4 жыл бұрын
These look like Heavyside electromagnetism equations. I think the ones from Maxwell were about 17 different ones. :p
@adrianstarly1
4 жыл бұрын
Miguel José I think you are right, however the four most famous partial differential equations are the ones that we all refer to as "Maxwell Equations"
@alejandroramos9319
4 жыл бұрын
Didn't you listen? It is beacuse he is a physicist, and a physicist will always tell you his profession. pd: a physic's student
@jl1267
4 жыл бұрын
One of Maxwell's equations actually has an application in computer graphics in relation to rotation of discrete objects. As in; if a thing is rotating, it takes /time/ for it to rotate. This in turn is related to quantum mechanics and the observer effect, that you have to observe this discrete object and measure it, to know how much it has rotated. Another random math fact... The formula for finding power factor follows Pythagoras' formula.
@sirinkat2623
4 жыл бұрын
They are beautiful...
I keep coming back to python but i haven't been engaged enough to go through the curve of learning something keeps pulling me back though.
I don't quite get it. What if I do want to use Visual Studio now? Do I connect somehow the pyver or pyproj folder to vsc? Or if I want to use vsc then should I just ignore this tutorial?
Thank you so much; as a new Python beginner, it took me an entire day to figure this out. Would you please do another tutorial on how to deal with this issue on Linux?
'i am getting this tree' is not recognized as an internal or external command, operable program or batch file.
This was amazingly helpful. Love your sense of humor as well. Thanks so much.
I am so glad I found your video. Your explanation makes a lot of sense.
Great video. Now just waiting till the next episode which explains how to connect it to Pycharm. :D
omg you are 100% spot on with the dependency issues that surface !
Thank you so much. You really helped me a lot. I too am a physicist so i can appreciate maxwells equations. Liked and subscribed👍🏽
11:42 Can you please do a series just on Maxwell's equations? Layman all the way up to advanced. Regards, G.
I love you. You help me to much,i researched it for 3 months
Good video. Have you considered a video on using Docker for managing Python development environment versioning?
Your videos are amazing, both in terms of actually properly discussing what you set out to and the interludes that come on.
On Linux there is a tool called "asdf" that can handle with different versions of any interpreter so we can have multiple Python on machine, It's an amazing tool that can save us a lot of time. Another tool to handle virtualenvs and our dependencies it's Python Poetry, it's really helpful and easy to use.
@jxthursday
4 жыл бұрын
On Linux I would recommend a combination of pyenv (to manage Python versions (never used asdf, but it sounds like it's something similar as pyenv)) and, like Eric said, Poetry (to manage virtualenvs and dependencies of a project). And NEVER mess around with the default Python of your Linux distro, ever. I learned that the hard way :-)
@EricSouzarys
4 жыл бұрын
@@jxthursday Yeah, but asdf can manage others runtimes as Nodejs, erlang, Java etc. I hardly recommend a quick search
thanks, i'd not heard about these virtual environments...so for someone who, a couple of months ago, installed python 3.8.3, several packages, added to path etc., it is simply a case of uninstalling and starting over your way?
I had to set up a new computer, which gave me PTSD, and I procrastinated on it for weeks now. I knew your video saved me last time AND it still works. Phew! Thank you!!
Thanks for this, can you still keep running in the virtual environment when it goes live or is it just for testing?
Just got enrolled in your course!
Wondering at 04:30 what about installing it on an (entirely) new pc, installing python for the first time. Do I still skip ticking to add it to PATH??
Just bought the course. Thanks!
It's funny, the first thing I thought when I started watching this was: I wonder why he has Maxwell's equations on that white board? I have them on my white board just above this monitor that I am watching this on. I loved the video! I wish someone would have told me this sooner. Thank you!
When I followed these steps in the video and run the "python -- " command on VS code terminal, it says python is not found but on doing the same thing on windows cmd , it is showing the python version . Any idea why is that?
Virtualisation is cool however th Colab from Google is also perfect alternative to install completely nothing on PC
@Ntifragility
4 жыл бұрын
This is the BEST available option. Every begginner should take it.
Do you recommend to set up a virtual environment if installing python for the first time? Before your Udemy course?
This solves of many issues I was having....thanks a bunch!
Thank you, these issues were driving me crazy
That was awesome I try all and now I can call pip with out an error in the CMD prompt. Now if you would be so kind and show how to download 2to3 to that path you make and I, It would be much appreciate. Thanks and keep them tuts coming.
Excellent video. Tab completion works in windows cli too so if you were to type \pyver\ and just hit tab it would autocomplete to py383.
Your video is very good, thanks for making it! However, I'm unable to install packages into my virtual environments. I noticed that in your video, when you ran the 'tree' command, many files appeared. But when I run the command, my folder structure only contains 3 folders named Include, Lib and Scripts. And the Lib folder has one folder called site-packages. For some reason, the files that should be installed are not all being installed. Do you have any idea why this might be? I recently tried to use virtual environments with Anaconda and I experienced the same type of issue. I'm working on Windows 10. Any help you can offer would be most appreciated! Thanks!
Yes, you are back sir :)