You MUST WATCH THIS before installing PYTHON. PLEASE DON'T MAKE this MISTAKE.
HTML-код
- Опубликовано: 16 июн 2020
- 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 - Развлечения
Get my two python courses for just $10 here bit.ly/2JuehGa . Use discount code CF903251D5
Are these courses different to the udemy course?
Hi Giles, Do we need to install python every time we want to set up a virtual environment?
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...
Jokes aside ... do u hack?
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
😂😂😂
wow! you dumb then
LOL
yes there are lot of virtual environments on his shirt, like containers inside a docker.
🤣🤣🤣🤣
“If you’re about to install Python for the first time, you’re almost certainly, gonna do it wrong.” This man understand me.
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.
@@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?
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
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!
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.
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
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.
Incredible how you combine Maxwell's equations, playing a ukelele during installing python!
Incredibly perplexing
Made it so much more interesting :)
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.
Do you save your project files corresponding to 'my_env' in 'pyproj\my_env', 'pyproj' or 'pyproj\my_env\Scripts'?
OMG! This is sooooo helpful! I have experienced the conflict issues in the past working on my own projects when first learning. Thank you!
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
yayy you're back!! Thank you for the video. Looking forward to more to come! :)
This was definitely one of the pieces of the puzzle that I've been missing! Thank you so much!
Ooooh, love the whiteboard with Maxwells equations in the background :)
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
That was fantastic, thank you. Just what I was looking for.
Great stuff! Thanks. But how do we keep track of the many virtualenvs and the packages in each one of them?
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.
Thx for the video, i did end having the issues you mention running different projects. This time i'm resetting everything and doing the right way. but i still have some questions, i was planning to install 4 different version none of them without global path set,
- but it is recommended to install one with a global python? (not sure if any program is going to try to install anything in base python, i think chocolatey do but not sure?)
- should i keep one with global variable so any programs that requires python to be accessed in the terminal without having to declare and activate my venv.
- can i create a venv and turn this venv into my global variable, using the python in my venv\Scripts?
- witch python do you recommended as the base global if needed? (i have end using this versions in my projects i have use 3.10.6 , 3.9.13 , and 3.11.3)
- If a program runs in example 3.10.6 (should it work in all 3.10.x version?), are the 3rdnumber just for small updates or are this breaking points for projects and combabilities stays? i'm asking because this time i might install the latest version of each 3.9.x - 3.10.x - 3.11.x.
Thanks in advance.
Thanks for this, can you still keep running in the virtual environment when it goes live or is it just for testing?
The bit with the ukulele cracked me up. Maybe I should too bring my piano up whenever I install something X'D
I sometimes do
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?
Makes sense, never got that far with projects, totally watching later, thanks mate! :)
excellent video! What do you recommend when a newer version comes out?
current version is 3.10.4 so you install it in c:\users\giles\pyver\py3104. When 3.10.5 arrives do you install it into c:\users\giles\pyver\py3105 and de-install 3.10.4 or let it be?
Hello Giles, thank you so much for this video. What an amazing video! I've never saw it anywhere else.
This was amazingly helpful. Love your sense of humor as well. Thanks so much.
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?
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!
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.
Hi there. Could you please mention what is the name of that course? Thank you
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?
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.
omg you are 100% spot on with the dependency issues that surface !
The ukelele tutorial really helped with my ADHD, this is probably the first time in my RUclips history I watched a RUclips video without tuning out and rewinding. Please consider keeping it if you haven't already. Thanks
Great stuff Giles, I like your whacky style - and also Maxwell's equations!
Great video. Is using environments in MS Visual Studio the same as creating virtual environments?
'i am getting this tree' is not recognized as an internal or external command,
operable program or batch file.
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!
If you use a code editor instead of the command prompt do you still need to use virtual environments?
Welcome back-- missed the videos
OH MY GOD!!! I WAS JUST INSTALLING PYTHON AND YOU HAVE BLESSED ME!!!
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.
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.
Tnx much for the instrunctions.
Do we have to go trough all the process again every time starting a new project or is there a short version? I am thinking Project 1 and 2 and so on....
tnx very much
Thank you for demystifying this subject. What a relief!
another quick question (if you do not mind attending) this approach to installing means that we only could call for the python interpreter on a virtual-env-project?? (different than under a system-wide installation where you could call for the python idle from anywhere at cmd???
Thanks for your help; question: How can I direct any Python output to my printer in windows 10? I have an EPSON WF-3620 Series printer. Thanks very much already.
I installed python in D driver, saved some basic projects and it can be a little confused. Should i uninstall and rearrange everything
How did I not find you yet? I am a subscriber now, and also a fan of your videos. Thanks!
Wait. I'm really interested in knowing why are Maxwell's Equations on the board.
These look like Heavyside electromagnetism equations. I think the ones from Maxwell were about 17 different ones. :p
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"
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
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.
They are beautiful...
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.
EXACTLY he helped abit bit he is not being specific about it which makes it extremely confusing
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.
FINALLY! Someone called it what it is. I was hoping this guy would give me idea/hint to help optimise serverless scripts. But meh
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
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.
@@SoorajAntony007 this was a very helpfull hint and helped me to avoid wasting even more time with some broken python projects!
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.
Some Maxwell’s equations in the background, cool :) Cheers!
Nice video. Glad to see you again. How do you integrate the venv in say sublime or VS Code?
I don't know about sublime, but at vs code you can exchange between Python environments once they are activated.
Thanks this is a very informative video but im still having trouble. for some reason im guessing this error while trying to activate
'my_env\Scripts\activate' is not recognized as an internal or external command,
operable program or batch file.
i also had a error when making virtual enviroment, but when i typed in 'dir' command, i could see the envitoment i made in there
any help would be amazing, I have been having alot of problems with this
thanks
I got it's a great recommendation using the virtual-environment approach from the beginning but what about installing IDE's, by the way, you probably use yourself an IDE, which do you recommend?. I was checking how's to about installing VisualCode which I chose after watching a lot reviews on the point but stopped at installing the connection to python, it seems going to install a system wide python how to deal with this particular and not getting into a mess. ???
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?
Wich computer glasses are you using Giles? Or maybe you can recommend us some brands?
Thanks for this. The ukulele segment was exceptional lol
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
This solves of many issues I was having....thanks a bunch!
Wow, that was super helpful. Thank you!
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??
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.
It means he solved your problem?
This literally happened to me, so glad I saw this
thanks a lot, I've followed this guide to install python, hope everything works for the better.
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.
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.
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?
Your videos are amazing. Thanks for sharing your knowledge!
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
The latest way of using Anaconda seems to be "Python Anywhere". I've just started your course on datainsight and it shows the install of anaconda and then spyder IDE and so on. Do we still need spyder to use "Python Anywhere'? If so how do we use it? Is it possible to get n updated version of the course to reflect the new cloud version?
I am so glad I found your video. Your explanation makes a lot of sense.
Good video. Have you considered a video on using Docker for managing Python development environment versioning?
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.
Use miniconda , simple yet effective . Learned it hard way when most deep learning models don't have compatibility with tensorflow 2+
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.
Very nice ! mi amigo, this tips it's very great, and the mixing ukulele, that wonderful, thanks for your time.
Question. I am using notepad++ as my interpreter. How can I import the code into the cmd to use with the virtual environment? In other words, why do I need virtual environment if I'm not even using cmd to interpret the code?
Could you explain how to set up things in this way but using Anaconda or miniConda... or do you think it makes no sense to use it? I would like to use notebooks
Your videos are amazing, both in terms of actually properly discussing what you set out to and the interludes that come on.
Where is the best place to learn Maxwell's equations?
Can we use the same venv for a different version of python, or do we need to create a separate venv for every version/project ?
Thanks for this helpful video. Exactly what I needed.
Great video, thank you very much. I left a comment on you latest video (add to path or not). I understand this is the context of a standalone install of Python but I am still wondering whether it makes any difference if I am installing Anaconda and plan to use Jupyter Notebooks. Sorry this is such a naive question: I am aged and a newb, which is not a great combination.
if you wanna get even more advanced, try using pyenv and poetry for managing python versions and packages, it's comfy
that was really good tutorial, thanks!
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 :-)
Do you recommend to set up a virtual environment if installing python for the first time?
Before your Udemy course?
Thank you! It was really helpful.
Awesome, step by step, well done. I've installed python, thank you
Excellent, thanks for this!
Hi good morning and Thank u ,, .. after installation .. when we got to installing Virtual environment info ..I'm getting { SYSTEM CAN NOT FIND THE PATH SPECIFIED} .. then when i use pip to try and download it i get {ERROR: ... should i just Uninstall Python completely and start again ?
how would one upgrade the phyton in a virt environment? thanks?
for instance my system wide python says it is 3.11.3 but my venv says it is 3.7.
wld be grateful for any help or signposting
COULD YOU KINDLY SAY WHICH ONE IS BETTER? pylint or pylance
When you talk about virtual environments are they the same thing as virtual machines such as Oracle's virtul box, VMWare virtual machine and windows hyperV?
No
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.
Hello there. I am a beginner who want's to get started with python. Now my question is i already have anaconda installed now do i have to install python separately. I mainly installed anaconda for A.I/Machine learning but can i use spyder for development or projects as well.
does installing a package in a virtual environment also installs it to future virtual environments for later use?