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...
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.
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!
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
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.
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
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 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!
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"
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.
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!
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.
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.
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.
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!
VENV hopefully doesn't require virtualization enabled because that's only available in windows 10 pro not home. Also at 3:15 you say "once you're done , launch the set up application " . Say what ? Do I type a particular key ? Mumble "launch" to Cortana ? How is this "launch" process activated ?
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.
Appreciate you sharing this video and your thoughts. Your insights are fantastic. I’m a retired Software/ systems Engineer & amateur radio operator; life long learner. De AA4SH
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!
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.
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
VIDEO SUMUP for those who need (please watch the video before, it is quality and fun, thanks Giles McMullen): Installing Python and developing projects using virtual environment: - 1 virtual environment for 1 project -> avoid dependencies incompatibilities between projects thanks to a "sandbox" - you can share this environement with colleague with who you collaborate STEPS TO FOLLOW: Python version installation: - create a folder for you python installations (name example: pyver) - when installing a new python version, don't add the python exe to the PATH and think to install it in the folder mentioned previously (customized install) Virtual environment creation for a project (for Windows): - create a folder for you python projects (name example: pyproj) - open a command prompt and move into it (eg: using cd command -> cd pyproj) - create the virtual environment thanks to a Python option with the following command: \your\python\path\python -m venv my_env (adapt \your\python\path\python with the path of the Python interpreter you want to use, and replace my_env by the name you want for your environment) - now you should have a my_env folder in pyproj Virtual environment activation (we are still in the pyproj folder): - launch the command my_env\Scripts\activate - the my_env environement should now be activated and mentioned at the beginning of your command prompt - if you launch the python command you can check that the python version launched is the same as the one of the interpreter used previously - if you try to import a lib it won't work because no lib has been installed in your environment yet Installing a libraty in a virtual environment: - as usual as outside an environment, use pip: pip install lib_name - you can now import the lib installed in your environment Virtual environment deactivation: - use deactivate command
Ok I did all of this and everything works fine but now where do I start coding 😂 cuz I want to code in my virtual environment but I do not know how to open it or where I can find it (again, got everything installed)
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
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.
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.
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.
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.
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 :-)
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:-)
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?
@@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.
@@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
@@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.
HI everyone, I would like to check that when I typed my path at 8:10, there was an error showing "No module named my_env". May I know how to fix this issue? I googled it but Im still confused with the explanation.
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.
from 6:48 and forwords I didn't understand a thing. Also i haven't got any experience with cmd so the "cd *something*" command I suspect makes you enter somewhere but how do you exit and stuff?
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 :-)
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)
7:55 I don't know what the hell that's supposed to do, but it doesn't work for me. It just says the directory doesn't exist. I'm using Python version 3.10.7 so I tried: "c:\User\Jonathan Tash\pyver\py310\python" -m venv my_env It just says the what I typed isn't recognized as an internal or external command.
Thanks for your instruction but when typing my username after User\ it doesn't recognize my username as it is a username with a space in it. The command: >C:\Users\John Doe\pyver\py3.11.4\python -m venv my_env returns 'C:\Users\John' is not recognized as an internal or external command, operable program or batch file. what should i do to fix this?
7:44 If that dosen't work for you guys, i found an other command, so you go to that directory that you just made and type: py -m venv env I made it under the name "env" To me this worked. Good luck with learning i guess. I know i would need it lol
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!!
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.
I am a complete novice. Your typical Windows-user. Seen the cmd-prompt maybe twice in my life. I really want to learn Python though, and I actually managed to do everything right here! Fantastic, I feel like a champ :D this was very educational in so many ways, thank you!
thank you for your content. even though my .dir was created I can not find the tree 8:29 I was lost when you said now just lets clear that. I restarted comd promt. Which it was how I messed up. how do I check the tree and activate? thank yoou again
Very useful. Would suggest that python was created by a group that was not focused on "It just works". But rather the group that prescribes to the nothing that keyboard is king & if you can't jump thru all the loops I've created, you shouldn't be doing computing. Still, it is a useful, if not slow, language.
I'm using pycharm and trying to import ursina engine, I install it via CMD but when I try import ursina and run the program on PyCharm it doesn't find ursina.
@@siddharthvivek2278 What would be the proper directory ? Installing a engine install it for all the computer or just a specific directory ? I'm kinda newbie sorry :)
@@SrGnomo-uy2uj you will have to navigate to the directory your project files are stored in and pip install ursina there. Each project's resources (libraries etc) will be isolated if you use a venv, so it will have to be done in the same folder as your other project files. (Again, click on the terminal option in the bottom menu bar and type in pip install ursina there) Also, don't worry about it, everyone has to learn sometime :D
My Command Prompt just shows me when I try to do the command from 06:53 : "The command "(command)" is either misspelled or could not be found." What should I do?
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
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?
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.
“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
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.
🤣🤣🤣🤣
Me: watching how to install python
Python Programmer: let's play the ukulele
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!
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
?
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
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
Learned it the hard way. Cloud based solutions are also good for this. Anaconda offer the possibility of setting up multiple environments as well.
OH MY GOD!!! I WAS JUST INSTALLING PYTHON AND YOU HAVE BLESSED ME!!!
Came here for ukelele lessons and now I'm a software engineer somehow
Incredible how you combine Maxwell's equations, playing a ukelele during installing python!
Incredibly perplexing
Made it so much more interesting :)
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.
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
gunna be fit
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.
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.
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!
yayy you're back!! Thank you for the video. Looking forward to more to come! :)
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...
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!
How did I not find you yet? I am a subscriber now, and also a fan of your videos. Thanks!
Glad you are back. ❤️❤️
Thanks very much! Me too!
I guess you lost some kilograms
I am simply buying every instructional this man makes.... "fantastic clarity"
This was amazingly helpful. Love your sense of humor as well. Thanks so much.
This was definitely one of the pieces of the puzzle that I've been missing! Thank you so much!
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.
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.
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.
Thank you for demystifying this subject. What a relief!
Hello Giles, thank you so much for this video. What an amazing video! I've never saw it anywhere else.
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!
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 :)
Thank you so much. You saved me lot of troubles and troubleshooting.
VENV hopefully doesn't require virtualization enabled because that's only available in windows 10 pro not home. Also at 3:15 you say "once you're done , launch the set up application " . Say what ? Do I type a particular key ? Mumble "launch" to Cortana ? How is this "launch" process activated ?
double click on the downloaded application
Great stuff Giles, I like your whacky style - and also Maxwell's equations!
I'm still confused about CUDA, Pytorch and other stuff that is a mess... When you start using virtual environments.
Makes sense, never got that far with projects, totally watching later, thanks mate! :)
Do you save your project files corresponding to 'my_env' in 'pyproj\my_env', 'pyproj' or 'pyproj\my_env\Scripts'?
Welcome back-- missed the videos
omg you are 100% spot on with the dependency issues that surface !
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.
Appreciate you sharing this video and your thoughts. Your insights are fantastic. I’m a retired Software/ systems Engineer & amateur radio operator; life long learner. De AA4SH
Thanks for this. The ukulele segment was exceptional lol
My Gods, I could listen to you talk about anything! Especially if there's gonna be a ukulele break!
This literally happened to me, so glad I saw this
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!
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
you are my favorite youtube channel.
This solves of many issues I was having....thanks a bunch!
DUDE! Subbing because of the ukulele lesson!!! Python tut is great too btw!
Thank you!
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
Great i found my new favourite teacher for windows =))
VIDEO SUMUP for those who need (please watch the video before, it is quality and fun, thanks Giles McMullen):
Installing Python and developing projects using virtual environment:
- 1 virtual environment for 1 project -> avoid dependencies incompatibilities between projects thanks to a "sandbox"
- you can share this environement with colleague with who you collaborate
STEPS TO FOLLOW:
Python version installation:
- create a folder for you python installations (name example: pyver)
- when installing a new python version, don't add the python exe to the PATH and think to install it in the folder mentioned previously (customized install)
Virtual environment creation for a project (for Windows):
- create a folder for you python projects (name example: pyproj)
- open a command prompt and move into it (eg: using cd command -> cd pyproj)
- create the virtual environment thanks to a Python option with the following command:
\your\python\path\python -m venv my_env
(adapt \your\python\path\python with the path of the Python interpreter you want to use, and replace my_env by the name you want for your environment)
- now you should have a my_env folder in pyproj
Virtual environment activation (we are still in the pyproj folder):
- launch the command my_env\Scripts\activate
- the my_env environement should now be activated and mentioned at the beginning of your command prompt
- if you launch the python command you can check that the python version launched is the same as the one of the interpreter used previously
- if you try to import a lib it won't work because no lib has been installed in your environment yet
Installing a libraty in a virtual environment:
- as usual as outside an environment, use pip: pip install lib_name
- you can now import the lib installed in your environment
Virtual environment deactivation:
- use deactivate command
Ok I did all of this and everything works fine but now where do I start coding 😂 cuz I want to code in my virtual environment but I do not know how to open it or where I can find it (again, got everything installed)
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
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.
That was fantastic, thank you. Just what I was looking for.
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.
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 :-)
@@jxthursday Yeah, but asdf can manage others runtimes as Nodejs, erlang, Java etc. I hardly recommend a quick search
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:-)
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?
@@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.
@@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
@@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.
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??
Very nice ! mi amigo, this tips it's very great, and the mixing ukulele, that wonderful, thanks for your time.
I am so glad I found your video. Your explanation makes a lot of sense.
Thanks for this helpful video. Exactly what I needed.
Some Maxwell’s equations in the background, cool :) Cheers!
"those two chords in the ukulele go well together... So, let's see if it's installed now". Pretty funny.
if you wanna get even more advanced, try using pyenv and poetry for managing python versions and packages, it's comfy
HI everyone, I would like to check that when I typed my path at 8:10, there was an error showing "No module named my_env". May I know how to fix this issue? I googled it but Im still confused with the explanation.
same problem
I LOVE this VIDEO. PLEASE CONSIDER using CHAPTERS in the TIMELINE
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?
from 6:48 and forwords I didn't understand a thing. Also i haven't got any experience with cmd so the "cd *something*" command I suspect makes you enter somewhere but how do you exit and stuff?
i wish i could try what you're doing there myself but my ukulele is not even tuned correctly atm
thanks a lot, I've followed this guide to install python, hope everything works for the better.
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 :-)
I'm barelt even a beginner. I don't want to add too much complexity for now. But I will remember this. Thanks you.
Thank you! 10 years of wanting a functional Python env
and in 20 minutes, viola!
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)
Very useful! Thank you! Also Physics Rules the World!
Where is the best place to learn Maxwell's equations?
7:55 I don't know what the hell that's supposed to do, but it doesn't work for me. It just says the directory doesn't exist. I'm using Python version 3.10.7 so I tried: "c:\User\Jonathan Tash\pyver\py310\python" -m venv my_env
It just says the what I typed isn't recognized as an internal or external command.
Thanks for your instruction but when typing my username after User\ it doesn't recognize my username as it is a username with a space in it.
The command:
>C:\Users\John Doe\pyver\py3.11.4\python -m venv my_env
returns
'C:\Users\John' is not recognized as an internal or external command, operable program or batch file.
what should i do to fix this?
Hello! I experienced the same issue with you and don't know what to do now, have you managed to solve it?😅
'i am getting this tree' is not recognized as an internal or external command,
operable program or batch file.
7:44 If that dosen't work for you guys, i found an other command, so you go to that directory that you just made and type:
py -m venv env
I made it under the name "env"
To me this worked. Good luck with learning i guess. I know i would need it lol
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.
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
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!!
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.
Finally you’re back!! 🙂
Thanks for this, can you still keep running in the virtual environment when it goes live or is it just for testing?
that was really good tutorial, thanks!
I am a complete novice. Your typical Windows-user. Seen the cmd-prompt maybe twice in my life. I really want to learn Python though, and I actually managed to do everything right here! Fantastic, I feel like a champ :D this was very educational in so many ways, thank you!
thank you for your content. even though my .dir was created I can not find the tree 8:29 I was lost when you said now just lets clear that. I restarted comd promt. Which it was how I messed up. how do I check the tree and activate? thank yoou again
Very useful. Would suggest that python was created by a group that was not focused on "It just works". But rather the group that prescribes to the nothing that keyboard is king & if you can't jump thru all the loops I've created, you shouldn't be doing computing. Still, it is a useful, if not slow, language.
You can also use PyCharm IDE for your projects, as it creates a venv on its own whenever you creare a new project :)
I'm using pycharm and trying to import ursina engine, I install it via CMD but when I try import ursina and run the program on PyCharm it doesn't find ursina.
@@SrGnomo-uy2uj make sure you're in the proper directory for your project, or just use the pycharm integrated terminal
@@siddharthvivek2278 What would be the proper directory ? Installing a engine install it for all the computer or just a specific directory ? I'm kinda newbie sorry :)
@@SrGnomo-uy2uj you will have to navigate to the directory your project files are stored in and pip install ursina there. Each project's resources (libraries etc) will be isolated if you use a venv, so it will have to be done in the same folder as your other project files. (Again, click on the terminal option in the bottom menu bar and type in pip install ursina there) Also, don't worry about it, everyone has to learn sometime :D
@@siddharthvivek2278 Thanks :) very helpful.
My Command Prompt just shows me when I try to do the command from 06:53 : "The command "(command)" is either misspelled or could not be found." What should I do?
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
Wow, that was super helpful. Thank you!
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?
Your videos are amazing, both in terms of actually properly discussing what you set out to and the interludes that come on.
I've hesitated to use virtual environments Till now because... ignorance, But I never knew it was so simple Thank You
Thank you so much. You really helped me a lot. I too am a physicist so i can appreciate maxwells equations. Liked and subscribed👍🏽