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/...

Комментарии • 99

  • @artusuroda487
    @artusuroda487 2 года назад +4

    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. 👍👍👍

    • @DidCoding
      @DidCoding  2 года назад +2

      I feel your pain 😀 This is the exact reason why I put the video together.

  • @nikola7771
    @nikola7771 8 месяцев назад +3

    I giggled ☺
    Very interesting way to add multiple versions of Python and control their usage. Thank you for your time and for the video.

  • @manasuniyal2897
    @manasuniyal2897 5 месяцев назад +1

    It's actually the cleanest and clearest video on you tube on this topic. THANK YOU

  • @shazam1334
    @shazam1334 6 месяцев назад +2

    its rare to see some solutions actually work in utube... good vid

  • @ananthakrishnank3208
    @ananthakrishnank3208 10 месяцев назад +1

    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.

  • @LisandroDC
    @LisandroDC Год назад +3

    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

    • @DidCoding
      @DidCoding  Год назад

      I tend to dockerise projects now and install the correct packages.

  • @Gareth.W
    @Gareth.W Год назад +3

    Cheers - succinct and useful. Have seen some horribly complicated videos so I'm glad I stumbled on this one.

    • @DidCoding
      @DidCoding  Год назад

      Glad you found it useful 🙌

  • @user-zl3qu8yh4z
    @user-zl3qu8yh4z Год назад +2

    wow., the best tutorial ever

  • @Gigudrion
    @Gigudrion 2 года назад +3

    Thanks. Much easier than other guides.

    • @DidCoding
      @DidCoding  2 года назад

      Thank you. I’m glad you like it

  • @suvrangshubarua7117
    @suvrangshubarua7117 Год назад +4

    Clear, Concise, Easy. Better than any other ones out there. Thank you :D

    • @DidCoding
      @DidCoding  Год назад

      Thanks for the feedback 👍

  • @fishfuse02
    @fishfuse02 2 года назад +1

    Thank You so so much. This helped me download the Sentence-transformers. You saved me

  • @malwaredev33
    @malwaredev33 Год назад

    This will help me and another programmer a lot in version management. Thanks Bro

    • @DidCoding
      @DidCoding  Год назад +1

      It’s simple but effective 👍
      Thanks for the feedback.

  • @azvasamusic7095
    @azvasamusic7095 Год назад +1

    thank you heavens and you... simple to the point and useful af

  • @Zeworkicz
    @Zeworkicz 9 месяцев назад +1

    The life saviour! Thank you!

    • @DidCoding
      @DidCoding  8 месяцев назад

      No worries 🙌

  • @begaxo
    @begaxo Год назад +1

    You're a life saver, thank you!

  • @makinarosa
    @makinarosa Год назад +1

    crispy clear technique.Thank 😊you

  • @levvillanueva9047
    @levvillanueva9047 Год назад +1

    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.

    • @DidCoding
      @DidCoding  Год назад

      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…

    • @abhinayasheva2860
      @abhinayasheva2860 Год назад

      sorry i didnt understand, so i have to install numpy pandas etc in all version of my python?

    • @levvillanueva9047
      @levvillanueva9047 Год назад

      ​@@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)

  • @lumpymilktea
    @lumpymilktea Год назад +1

    yeah this works, thanks for the guide

  • @saraheidari2642
    @saraheidari2642 3 месяца назад +1

    thanks it was helpful

  • @joelprestonsmith
    @joelprestonsmith Год назад +1

    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.

  • @vishaltrivedi540
    @vishaltrivedi540 2 года назад +1

    Thanks!!! It was really helpful.

    • @DidCoding
      @DidCoding  2 года назад

      Thanks for the feedback 👍

  • @sk74962
    @sk74962 5 месяцев назад +1

    Thank you so much.

  • @AlDamara-x8j
    @AlDamara-x8j Год назад +1

    Thanks a lot for this tutorial!

    • @DidCoding
      @DidCoding  Год назад +1

      No problem. Glad you found it useful.

    • @AlDamara-x8j
      @AlDamara-x8j Год назад

      @@DidCoding By the way, do you have a similar video for Linux? Thanks again!

  • @abdelrhmantarek5950
    @abdelrhmantarek5950 6 месяцев назад +1

    Thank You ❤

  • @iiannRB
    @iiannRB Год назад +1

    very clear , thanks

  • @alananalyst7795
    @alananalyst7795 Год назад +1

    that was helpful, thanks!

  • @rahulkr2575
    @rahulkr2575 9 месяцев назад +1

    By far simplest aay to use multiple versions.

  • @lil_4118
    @lil_4118 Год назад +1

    very helpful, thanks

  • @programmerlovers8071
    @programmerlovers8071 7 месяцев назад +1

    Nice ❤❤

  • @JouLopes
    @JouLopes Год назад +1

    When you edit the version of Python, you edit it in all your computer or just in the current folder?

    • @DidCoding
      @DidCoding  Год назад

      Sorry for the delay. It changes it across your machine.

  • @robo4827
    @robo4827 5 месяцев назад +1

    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?

    • @DidCoding
      @DidCoding  5 месяцев назад

      Morning,
      Dockerizing your project is an easy way to use multiple Python versions 👍

  • @MAS_BIRU_LAUT
    @MAS_BIRU_LAUT 10 месяцев назад +1

    thanks man

    • @DidCoding
      @DidCoding  10 месяцев назад

      You’re welcome

  • @lohithasai8161
    @lohithasai8161 Год назад +1

    There are no python files in the path but i have installed both 3.7 and 3. 11 version. What shld i do

    • @DidCoding
      @DidCoding  Год назад +1

      You can add them manually 👍

  • @sushantsawant6468
    @sushantsawant6468 Год назад +1

    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.

    • @DidCoding
      @DidCoding  Год назад

      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 🙌

  • @levvillanueva9047
    @levvillanueva9047 Год назад +1

    For 'smart' people, these python developers sure know as much as Jon Snow

  • @narpwa
    @narpwa Год назад +1

    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 ?

    • @DidCoding
      @DidCoding  Год назад

      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 👍

  • @sk45293
    @sk45293 Год назад +1

    This is great

  • @infinitylogic_ahmed
    @infinitylogic_ahmed Год назад +1

    thank you

  • @user-tr3ml5cd9r
    @user-tr3ml5cd9r Месяц назад +1

    Not bad but great. I may use this craft method if nothing better appears

    • @DidCoding
      @DidCoding  Месяц назад

      🙌

    • @user-tr3ml5cd9r
      @user-tr3ml5cd9r Месяц назад

      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).

  • @hairulls
    @hairulls Год назад +1

    thanks bro,

  • @jizzervirusreptikonski8756
    @jizzervirusreptikonski8756 Год назад +2

    6:25 why it didn't register it?

    • @DidCoding
      @DidCoding  Год назад

      I put this video together a while ago so I’ll need to have a look.

  • @skaruts
    @skaruts 2 года назад +1

    I wonder if you can write a python script to switch the path order automatically... lol :)

  • @asraajalilsaeed7435
    @asraajalilsaeed7435 Год назад

    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?

    • @DidCoding
      @DidCoding  Год назад +1

      Have you tried using docker with a python2 image?

  • @matiasvasquez7300
    @matiasvasquez7300 Год назад +1

    grande pelao se te quiere

  • @jparks6544
    @jparks6544 7 месяцев назад +1

    DO NOT DO WHAT THIS GUY SAYS. This is idiotic.

    • @DidCoding
      @DidCoding  7 месяцев назад

      Thanks for your constructive criticism 😂

  • @doniherald7745
    @doniherald7745 Год назад +1

    thank you