Virtual Environments in Python - Crash Course

Поделиться
HTML-код
  • Опубликовано: 21 июн 2022
  • In this video we learn how to create and use virtual environments in Python.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine.com/books/
    💻 The Algorithm Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎙 Discord: / discord
    🎵 Outro Music From: www.bensound.com/
  • НаукаНаука

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

  • @princemarkied8071
    @princemarkied8071 4 месяца назад +8

    this was exactly what i needed. It made it so simple for some reason lol. Virtual Environments are a MUST for python and now I can navigate them with no confusion

  • @albertoricardomorales6328
    @albertoricardomorales6328 2 года назад +8

    Thanks!
    This is just what I needed

  • @jamesw8458
    @jamesw8458 Год назад +5

    This is crystal clear. Thanks!

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

    Very good explanation. All basics were straight an to the point. The virtual environment was weird for me as a fulltime javascript dev. Now I understand that its not really that different except of the changed environment variables and paths. :)

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

    excellent thanks! clear easy to understand explanation, helped a lot!

  • @felipefarah9720
    @felipefarah9720 9 месяцев назад

    Crazy good explanation! Great stuff

  • @jjar7266
    @jjar7266 2 месяца назад

    Thank You so much! I was having a bit of trouble with chapter 18 in Python Crash Course 3rd editiion on creating a virtual environment.. you made it very simple to understand!!

  • @A.Tantawy
    @A.Tantawy 8 месяцев назад

    Thanks a lot man, You're doing an amazing job!!!

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

    Awsome, Pretty straight forward. Thanks bro.

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

    This was sooooooooooo nice and detailed, thank you man, you saved me from several late night headaches 😅

  • @nu940
    @nu940 10 дней назад

    concise, yet very helpful tutorial

  • @govinej
    @govinej 2 года назад +5

    Can you do a course about testing your code/classes/methods?

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

    This was super helpful, thank you!

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

    Exactly what I needed! 👍

  • @Good-and-Geeky
    @Good-and-Geeky Год назад

    Super explanation. Very useful !

  • @aslynnmoore8601
    @aslynnmoore8601 3 месяца назад

    Great video. Good explanation of why needed and how to create a requirements.txt file to identify the modules to load into the environment. The only thing missing is saying what to do with the requirements.txt file after you make it. While you could just read through it and manually pip install each of the modules in the file, you can also just install all of them in one command using pip install -r requirements.txt. That is really what I came here to find and you have everything except that. Thought I would add it here so the whole process is complete.

  • @tejashwini54321
    @tejashwini54321 11 месяцев назад

    Thank you so much sir for such a clear explanation....✨😊✨✨✨✨

  • @Yash-Gaikwad
    @Yash-Gaikwad 5 месяцев назад

    Best tutorial for virtual environment. subscribed :)

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

    Great intro - thanks!
    I played around on a Mac, and as far as I can tell, the following commands are used:
    To create a virtual environment:
    python3 -m venv
    OR (as per this video):
    virtualenv
    Then... to activate:
    source /bin/activate
    And to deactivate:
    deactivate
    --
    That's what worked for me.
    Am I missing anything? :)

    • @chrisdepallanofficial460
      @chrisdepallanofficial460 3 месяца назад

      its the same for linux/unix systems. i was searching for scripts in my system. then i just went " hahaha"

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

    very clear, thank you

  • @oguzhantopaloglu9442
    @oguzhantopaloglu9442 2 года назад +15

    whats the difference between this and "python -m venv venv" stuff?

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

      @@Serpent-DCLXV thx, and what should you recommend to use and why? Until now i am using python -m venv .venv, but after watching your awesome Video i am not sure if i should stay with that or if i should switch

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

      @@Serpent-DCLXV awesome answer, thanks a lot

  • @DennisMissel-sw1uh
    @DennisMissel-sw1uh Год назад

    Awesome content .. thank you

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

    clear on Windows - cls - or maybe CTRL+L works too?

  • @songxujin5581
    @songxujin5581 6 месяцев назад

    讲的醍醐灌顶!大兄弟谢谢你

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

    useful video, well explained :)

  • @Bern-One
    @Bern-One 4 месяца назад

    Great lesson.

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

    Thank you good sir!

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

    Great video!

  • @MarcelMaier-zz4xo
    @MarcelMaier-zz4xo 4 дня назад

    i was kinda shocked, that this even is a problem in python. as a beginner i just asumed that i works like node :D

  • @erfanfekri7156
    @erfanfekri7156 9 месяцев назад

    Thanks a lot !

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

    @NeuralNine is the Virtualenv better than the Venv?

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

    Thanks a lot

  • @lundebc
    @lundebc 6 месяцев назад

    So, I think I am missing something key. On my raspberry pi, runing bookworm, If I create the venv, install a library, then go to my visual studio environment, how do I make sure that the python "sees" the library in the venv ?

  • @elysonpanolino5413
    @elysonpanolino5413 6 месяцев назад

    after creating and activating virtual environment, how to proceed in actual coding that uses this venv

  • @sentient1640
    @sentient1640 2 месяца назад

    I didn't add python to path. So, when I deactivate and run pip list command, i still see the packages installed in virtual environment but not outside the folder.

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

    I use venv because i don't have root permissions and I struggle use venv with IntelliJ IDEA, the packages i download with pip in the venv are not showing on my IDE, but your video helped me understanding those concept, i'm not at all into progamming

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

      Hmm I’ve had similar problems with packages not showing, maybe i’ll try virtualenv

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

    Does anyone have any resources on how to move an existing Django project into a venv? I started a Django project without first creating a venv.

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

    New to python applications here. From my understanding, virtualenv is a third party package. venv (formally pyenv) comes installed with python3. With this said, is it still, then, necessary to use virtualenv? I'm mad confused... then there's pipenv... **confusion overload**

    • @Grogueman
      @Grogueman 10 месяцев назад +3

      If you need to use different versions of pyhton for various projects, virtualenv is the way to go. venv only creates environments with its home release of Python.

  • @brianwaweru7754
    @brianwaweru7754 6 месяцев назад

    thanks

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

    for some reason, I can't deactivate virtualenv, command .\Scripts\deactivate. bat doesn't do anything...?

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

    is virtualenv recommended or deprecated? (min 5:00)

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

    Cool and more useful than reading RedHat...lolz

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

    👍

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

    I am so used to see that "PIL/Pillow doesn't need a Virtual Environment" that I need one to make it work.
    All I end up to says is "God. Fucking. Dammit". Thank for the video.

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

    great, another super technical "introduction".
    How about a high level illustration of what the topic is about, and keep it dumbed down for a set amount of time before introducing abbreviations after abbreviations

  • @MK3DScapes
    @MK3DScapes 4 месяца назад

    The "ls" command will not work in CMD for me. Does anyone know why?

    • @NeuralNine
      @NeuralNine  4 месяца назад

      It's a Linux command. On cmd you need to use "dir". I added a custom alias in Windows.

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

    I was wondering why the fuck do i want to go to this trouble but ig it makes sense

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

      😂me too, i spent so much time thinking this stuff was way too unnecessary, but now that I’m working on projects that require external packages, I guess I ought to learn up on this and get comfortable with it

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

    Why keep on showing old technology. Can do all with pipenv match more simple.

  • @Tony-dp1rl
    @Tony-dp1rl 3 месяца назад

    Using Docker as I do now, is a lot more simple than this, and you have the bonus of being ready to deploy just about anywhere. Not seeing any advantage here.

  • @jms9993
    @jms9993 4 месяца назад

    ugh windows and the cli makes me so sad :(

    • @NeuralNine
      @NeuralNine  4 месяца назад

      I have a newer video recorded on Linux.

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

    Do you know why people skip the videos back and forth? because we're dealing with a hundred plus videos for our search query and every single one claims to epxlain python virtual envs. For eache *#$()*#$ video, we have to sit through 2 unskippagle godda***d ads for 20 seconds. You see where this is going?

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

    Thx._

  • @WaqasKhan-pn9fj
    @WaqasKhan-pn9fj 2 года назад +1

    1st viewer 🤣🤣

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

    3rd comment

  • @Langeta-kun
    @Langeta-kun 8 месяцев назад +3

    didnt work/talks too fast