Using multiple Python version on Windows
HTML-код
- Опубликовано: 11 сен 2024
- Using multiple Python version on Windows
As a developer, I find that I need to switch between different Python versions when I'm working on projects.
I have my own way of doing this!
In this video, I will show you an easy way to toggle between different versions of Python on your Windows machine.
ABOUT OUR CHANNEL
Our channel is about coding a development. We cover lots of cool stuff such as Django, React, Javascript, AJAX, Coding on DLT's
Check out our channel here:
/ @didcoding
Don’t forget to subscribe!
CHECK OUT OUR OTHER VIDEOS
• Building and launching...
• Integrating API's with...
• Hedera Hashgraph Pytho...
FIND US AT
www.didcoding.com
GET IN TOUCH
Contact us on bobby@didcoding.com
FOLLOW US ON SOCIAL
Get updates or reach out to Get updates on our Social Media Profiles!
Twitter: / didcoding
Facebook: / didcoding
SUPPORT US
Patreon: / didcoding
HBAR wallet: 0.0.290086
HIRE ME
Need help with a project? Hire me on a freelance basis?
Upwork: www.upwork.com...
DISCOUNTS
Visit our website to get some fantastic discounts
didcoding.com/...
A couple of weeks ago I was sorting python versions at my machine. VSCode hasn't seen a certain version. It took me an hour to fix it. If I only saw your video. 👍👍👍
I feel your pain 😀 This is the exact reason why I put the video together.
I giggled ☺
Very interesting way to add multiple versions of Python and control their usage. Thank you for your time and for the video.
😃😃
It's actually the cleanest and clearest video on you tube on this topic. THANK YOU
Thank you
its rare to see some solutions actually work in utube... good vid
Thank you
Thanks! If someone still gets "python not recognized as an internal ...", just try to move those two paths all the way to the top in your "SYSTEM" path. That worked for me.
Good advise
I would like to have something much cleaner like "node package manager". But I have to say that your approach is really concise and works perfectly
I tend to dockerise projects now and install the correct packages.
Cheers - succinct and useful. Have seen some horribly complicated videos so I'm glad I stumbled on this one.
Glad you found it useful 🙌
wow., the best tutorial ever
Thank you
Thanks. Much easier than other guides.
Thank you. I’m glad you like it
Clear, Concise, Easy. Better than any other ones out there. Thank you :D
Thanks for the feedback 👍
Thank You so so much. This helped me download the Sentence-transformers. You saved me
Glad it helped 👍
This will help me and another programmer a lot in version management. Thanks Bro
It’s simple but effective 👍
Thanks for the feedback.
thank you heavens and you... simple to the point and useful af
Thanks for the feedback
The life saviour! Thank you!
No worries 🙌
You're a life saver, thank you!
No worries
crispy clear technique.Thank 😊you
🙌
It should also be mentioned that if you're on you venv and you want to use a package that is already installed on the host, that package will use the kernel for the *first* python version you installed regardless of the PATH configuration. To avoid this, install those packages again on your venv. (Tested while using jupyterlab/jupyter-lab). I ran into this issue because I thought 'I will need jupyter for everything', I might as well install it on the host and not time and time again on the venv's. Turns out, you need to for maximum compatibility with the version of python you want to use.
Thanks for the comment. When I recorded this it was an easy fix to a problem I faced when swapping between projects. I tend to use docker these days to containerise…
sorry i didnt understand, so i have to install numpy pandas etc in all version of my python?
@@abhinayasheva2860 Specifically for jupyter-lab, if you just use the host version and it's not compatible with what your other package needs, you should install jupyterlab again on that VENV
Scenario
-HOST COMPUTER, FIRST PYTHON INSTALLED IS 3.10
-HOST COMPUTER HAS JupyterLab installed (version not imporant here)
At this point, whenever you create a VENV, jupyter lab will be available for you to use and it will use the 3.10 kernel regardless if your PATH configuration (in windows)
-We install Python 3.8
-We change the PATH configuration so that python 3.8 is on top
-We create a new VENV (python --version -> 3.8)
-JupyterLab is available, however, it will use the Python 3.10 kernel regardless of your PATH config
-Run pip install jupyterlab for this VENV
-JupyterLab will now use python 3.8 (the correct kernel for this VENV)
yeah this works, thanks for the guide
Thanks for the feedback
thanks it was helpful
👍
What exactly did you do at 3:06? Screens start magically appearing. You clicked on something in the lower part of the screen. What was it! I'm loving the video so far. Just can't figure out how you went from the Console to those navigation panes. Thank you.
Hi there. That’s windows search panel 👍
Thank you, @DidCoding
Thanks!!! It was really helpful.
Thanks for the feedback 👍
Thank you so much.
🙏
Thanks a lot for this tutorial!
No problem. Glad you found it useful.
@@DidCoding By the way, do you have a similar video for Linux? Thanks again!
Thank You ❤
🙌
very clear , thanks
🙌
that was helpful, thanks!
👍
By far simplest aay to use multiple versions.
Thanks mate
very helpful, thanks
Thank you
Nice ❤❤
Thanks
When you edit the version of Python, you edit it in all your computer or just in the current folder?
Sorry for the delay. It changes it across your machine.
Hey manh i tried this its not working when i install a new version of Python does the environment variables get added directly in ur environment variables path
Cuz when i download i need to manually add the path in env variables and when i move it up yet no change it is showing me the 3.11 version only whereas i want to run 3.7 version
what should i do can someone pls help out?
Morning,
Dockerizing your project is an easy way to use multiple Python versions 👍
thanks man
You’re welcome
There are no python files in the path but i have installed both 3.7 and 3. 11 version. What shld i do
You can add them manually 👍
hello
i have two python version 3.10 and 3.7.8, I want PY 3.7.8 on priority when I type PY on CMD for Machine learning.
To do that you may need to install 3.7.8 followed by your secondary versions. Alternatively, you can use pyenv or fire up a basic docker container with the version you need 🙌
For 'smart' people, these python developers sure know as much as Jon Snow
😂
Is there a way to run a python script in for example 3.7.3 and at the same time run another script in 3.8.2 on the same computer ?
One option is to use Docker and run a python image. This will give you a local python version and a different one in Docker 👍
This is great
Thank you 🙏
thank you
Your welcome
Not bad but great. I may use this craft method if nothing better appears
🙌
YES. It has worked!! Your solution solved my obstacles regarding "ECG-image-kit" project (hearth & health stuff by Alphanumerics Lab). That code requires Python 3.8.18 and I have switched from my usual 3.12.1 down to 3.8.10 (current release available).
thanks bro,
🙌
6:25 why it didn't register it?
I put this video together a while ago so I’ll need to have a look.
I wonder if you can write a python script to switch the path order automatically... lol :)
😀
I have problem , i need python2 with keras, tensorflow in order to knime , but i cant becase i have python vertion 3
Can you help me?
Have you tried using docker with a python2 image?
grande pelao se te quiere
😂
DO NOT DO WHAT THIS GUY SAYS. This is idiotic.
Thanks for your constructive criticism 😂
thank you
You’re welcome