Workflow: Python and Virtualenv

Поделиться
HTML-код
  • Опубликовано: 14 ноя 2024

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

  • @TheMarbo74
    @TheMarbo74 5 лет назад +66

    I am learning python...I searched all your videos... I wished you had more than just 1 video.
    I enjoy watching you skills.

    • @KevinOMalleyisonlysmallreally
      @KevinOMalleyisonlysmallreally 5 лет назад +17

      I 100% second this. For loads of new coders python is a great start and coding train is so good at teaching this stuff that if he did a series on python he would help probably thousands of people.

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

      @@KevinOMalleyisonlysmallreally Absolutely

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

      I second this too.

  • @yousufazad6914
    @yousufazad6914 6 лет назад +5

    I first came across your videos few years back; it was about Box2D engine. You didn't have beard back then. With time I forgot the channel name. Few days back I stumbled upon your videos, didn't take much to recognize it's you. Same positive energy, enthusiasm and simple explanation! Love it!

  • @anteconfig5391
    @anteconfig5391 3 года назад

    This is what I needed to see the first time I heard about virtual environments!!! THank you sir

  • @jetspray3
    @jetspray3 5 лет назад +6

    Every python virtualenv tutorial on youtube is the same, now how do you used that environment in vscode or atom?

  • @md.mohiuddin
    @md.mohiuddin Год назад

    Thanks. Your teaching style is really amazing.

  • @supp0x
    @supp0x 6 лет назад +5

    if it isn't the happiest coder on earth LOL .. awesome video bro :)

  • @ytlagu2010
    @ytlagu2010 5 лет назад

    Oh man you have really helped loads of time.... I watched lots tutorials but I never understood venv until your video... THANK YOU HELLSOME!!!!!!!

  • @shivangb237
    @shivangb237 4 года назад

    Congratulations on 1M subs! May the Coding Train run forever!

  • @gamestv4875
    @gamestv4875 5 лет назад

    You must be the God of code.
    Nice videos.Learn a lot , thanks.

  • @PainDive1
    @PainDive1 6 лет назад +1

    This was awesome. I always have trouble setting up environments. My troubles are usually in JSON file inside VSCode lol.

  • @bevintx5440
    @bevintx5440 5 лет назад +1

    I don't understand why you don't use the Python 3 standard Mac installation package? You mentioned that the Python website says to use homebrew, but I don't see that anywhere. Homebrew is not necessary to install Python 3.

  • @Jamswoof
    @Jamswoof 4 года назад +1

    I dont understand how it says i have virtualenv downloaded but when i try to use the command it days it doesnt exist. Ive tried to look this up but i never really get a straight answer or i get a bunch of people saying to use a bunch of different commands thats seem unnecessary. Can anyone help ?

  • @JimmyGunawanX
    @JimmyGunawanX 6 лет назад +1

    Thanks so much for this tutorial!!! I waited years for this.

  • @0cho8cho72
    @0cho8cho72 Год назад

    you really nailed it thanks

  • @wojciechniedbala
    @wojciechniedbala 6 лет назад +27

    You should use pipenv in 2018 :) it is much easier

    • @flyingsquirrel3271
      @flyingsquirrel3271 6 лет назад +2

      Virtualenv might not be the best option but its fine. Using Python 2.7 in 2018 though is simply unacceptable!
      Edit: Yeah, I watched the rest of it and noticed that he did the right thing by installing python3.7 in the video :)

    • @Luchsio
      @Luchsio 6 лет назад +1

      Pipenv is amazing thanks for the advice :)

    • @SolarLiner
      @SolarLiner 6 лет назад +1

      I think he's gonna get there eventually. Learning the basics of Python virtualenvs is a must before having a Pipenv-centric workflow.

    • @wojciechniedbala
      @wojciechniedbala 6 лет назад +1

      @@SolarLiner yeah u are right, since pipenv wraps virtualenvs it is important to know how they work. However this video shows that Daniel gets that and I think it is a good moment to try pipenv for him.

    • @TheCodingTrain
      @TheCodingTrain  6 лет назад +3

      I am definitely going to try it! Remind me to make a follow-up!

  • @anibal9812
    @anibal9812 6 лет назад +1

    I personally prefer pyenv, which is able to install all flavors and versions from source. Installation times are horrible, but it's not so bad considering how rare I'll need to do it (looking at you, stack).
    Leaving preferences aside, this is a great tutorial! :3

  • @antonioguiotto529
    @antonioguiotto529 3 года назад

    what to say, your teaching skills are a warranty

  • @0xmassive526
    @0xmassive526 3 года назад

    I'm an introvert and I would fuckin love to work with this dude.

  • @MasonE81
    @MasonE81 3 года назад

    Super clear as always. Thank you sir.

  • @anuragtripathi1744
    @anuragtripathi1744 6 лет назад +3

    Thanks i Was Waiting for this Video only

  • @Dan-codes
    @Dan-codes 3 года назад

    You're a fun instructor

  • @kirbyurner
    @kirbyurner 6 лет назад

    Anaconda also comes with a virtualization mechanism. Might just wanna use that, with conda instead of pip. So many options, as you've shown.

    • @JimmyGunawanX
      @JimmyGunawanX 6 лет назад +1

      kirby urner I use CondaEnv up until this time, it is ok but sometimes the CondaEnv can be using a different Python and sometimes mess things up if not careful. This virtualenv seems cleaner.

    • @kirbyurner
      @kirbyurner 6 лет назад

      Yes. I teach Python a lot and recommend the Anaconda distribution as a first experience. However, after awhile, one may wish to try a less managed environment and go directly to Python.org for the latest. There's an XKCD cartoon (#1987) making fun of the tangle of snakes we might get after all this experimentation. I'm also a big fan of the Spyder IDE that comes with Anaconda, yet fully understand why a student might move towards a multi-language editor like Atom or Eclipse at a later date (because wanting to mix several languages).

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

    You're a great teacher !When we will see more Python videos from you ?

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

    I find Anaconda to be far easier to use than virtualenv after trying both. I like how Anaconda keeps installs separate from my project files and it’s commands are easy to use for activating and deactivating.

  • @PatrikTrefil
    @PatrikTrefil 5 лет назад

    As I understood it virtualenv is obsolete/unnecessary, therefore I would expect a warning at the beginning of the video... I followed the tutorial, and at the end, you conclude there is a better way to do it, which is already included in python3. Anyway, I got a good understanding of how to use virtual environments, thanks.

    • @TheCodingTrain
      @TheCodingTrain  5 лет назад

      Sorry, that's a good point, I should probably redo this one!

  • @kittoh_
    @kittoh_ 3 года назад

    It'd awesome if you create more Python videos sir! Thanks!

  • @dr.mikeybee
    @dr.mikeybee 4 года назад

    I think the json file in javascript is analogous to a python virtual environment because that has all the package versions.

  • @ecptavares
    @ecptavares 4 года назад

    Hi! I am new to python and virtualenv everytime I run virtualenv I get an error: AttributeError: module 'virtualenv.create.via_global_ref.builtin.cpython.mac_os' has no attribute 'CPython3macOsFramework. IF I create a new user on my mac with admin power like the one user I am currently logged in then I can use virtualenv .Why? what should I do to use with my current user? thank you

  • @pedromateus9575
    @pedromateus9575 6 лет назад

    HELLO, what a great video!
    Can you tell me which shortcuts do you use more in your coding?
    Thanks,

  • @sandeepreddy5849
    @sandeepreddy5849 6 лет назад +4

    Hey,
    Try some machine learning concepts in python

  • @berkercin6800
    @berkercin6800 3 года назад

    so where should i initiate git? inside environment? does it even matter?

  • @furrane
    @furrane 6 лет назад +6

    11:21 exit(); Haha, old habits die hard :p

    • @saimaacademy5537
      @saimaacademy5537 5 лет назад

      ruclips.net/video/Ygbf9yol7fU/видео.html://ruclips.net/video/Ygbf9yol7fU/видео.html

  • @Originallost
    @Originallost 4 года назад

    Thank you!!!!! I all understand )))🤗🤗🤗

  • @kera2403
    @kera2403 3 года назад

    how to do this on windows. source command is not working

  • @user-yl8nc1pi9i
    @user-yl8nc1pi9i 4 года назад

    Could you make a video on connectivity between python and mysql for beginners?

  • @sebastianc4557
    @sebastianc4557 5 лет назад

    You are amazing man!

  • @eduardokiriakos6255
    @eduardokiriakos6255 6 лет назад +3

    "pip freeze" for list all dependencies installed in the enviroment

  • @NielsHilderink
    @NielsHilderink 6 лет назад +3

    What about pipenv?

  • @aakashyadav4760
    @aakashyadav4760 5 лет назад

    How can i use virtual environment.
    During creation of any py file run as autostart on bootup

  • @stevesamah4018
    @stevesamah4018 4 года назад

    Very helpful.

  • @juris.l.6037
    @juris.l.6037 6 лет назад +1

    None of the videos on this subject show, how to use your Editor (Sublime, Atom, etc..), using your virtual env :(

    • @alexsando9704
      @alexsando9704 5 лет назад

      Do you have the answer now? I'm new on this virtual environment stuff..

    • @rodrigoejcm2
      @rodrigoejcm2 4 года назад

      Use the internal ide shell to activate the env. This is pretty simple using vocoder. It will show the env name in the bottom tab

  • @amits8112
    @amits8112 5 лет назад +1

    Great work, your video can be more helpful if you gave little tips for Linux (Ubuntu) alongside.

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

    Great amigo!!

  • @eudo81
    @eudo81 5 лет назад

    great video man!

  • @mastercode7851
    @mastercode7851 6 лет назад +1

    and i thought i know everything about python !

  • @atharvapagare7188
    @atharvapagare7188 6 лет назад

    Thanks for the video

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

    "wow awesome, I will finally be able to train my own models!"
    - ERROR: No matching distribution found for tensorflow
    turns out tensorflow does not support windows 32bit........

  • @drgr33nUK
    @drgr33nUK 6 лет назад

    pipenv is a massive improvement upon virtualenv.

  • @soumyamohapatra7621
    @soumyamohapatra7621 6 лет назад +2

    Why don't you start using python?

    • @metaorior
      @metaorior 6 лет назад +3

      cuz he's a web dev

  • @samuelketechie1238
    @samuelketechie1238 6 лет назад

    Great and thanks a lot

  • @MJ-lr7mj
    @MJ-lr7mj 5 лет назад

    dude is too excited.

  • @limevan217
    @limevan217 5 лет назад +1

    i like pythons .

    • @limevan217
      @limevan217 5 лет назад +1

      Reptiles are the best.

  • @wolfisraging
    @wolfisraging 6 лет назад

    Finally
    Python

  • @happychuckprogramming6048
    @happychuckprogramming6048 6 лет назад

    nice video

  • @NJQYoutube
    @NJQYoutube 6 лет назад

    it's so Pro

  • @noufalvlpr
    @noufalvlpr 6 лет назад +1

    use pipenv

  • @metaorior
    @metaorior 6 лет назад +1

    when you will talk about logic for beginners :(

  • @dR.Garuby
    @dR.Garuby 6 лет назад

    is there a funcion like p5.js Translate in PyGame ?

    • @MattRose30000
      @MattRose30000 6 лет назад

      No

    • @simonedevita609
      @simonedevita609 6 лет назад

      There is processing.py for python

    • @kimeg7294
      @kimeg7294 4 года назад

      Recently I tried translating my pygame code to "fit" the JS syntax, and it was one the most exhausting times I've ever had in coding. Once you have the top-down knowledge of a specific game or program, just start coding from scratch in one language it will save you from dying a decade earlier.

  • @scottwillis5434
    @scottwillis5434 3 года назад

    In about the time spent being self-deprecating about not knowing what "pip" stands for, you *could* look it up...

  • @ionkinetic
    @ionkinetic 6 лет назад

    If you are not useing Python 3
    Please, Stop...... get help.
    :-P

    • @MattRose30000
      @MattRose30000 6 лет назад

      Absolutely barbaric

    • @doxanthropos
      @doxanthropos 6 лет назад +1

      Tell that to Apple. Python 2 is still the standard version on MacOS.

    • @ionkinetic
      @ionkinetic 6 лет назад

      Yes I will, but I need a new 11" MacBook Air (with a good keyboard) or Mac Mini to care. :-)

  • @Jad.m08
    @Jad.m08 5 лет назад

    I use anaconda prompt

  • @yousufazad6914
    @yousufazad6914 6 лет назад

  • @2024comingforyou
    @2024comingforyou 3 года назад

    I dont like such people