Workflow: Python and Virtualenv

Поділитися
Вставка
  • Опубліковано 10 гру 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

  • @md.mohiuddin
    @md.mohiuddin Рік тому

    Thanks. Your teaching style is really amazing.

  • @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!

  • @supp0x
    @supp0x 6 років тому +5

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

  • @gamestv4875
    @gamestv4875 5 років тому

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

  • @JimmyGunawanX
    @JimmyGunawanX 6 років тому +1

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

  • @MasonE81
    @MasonE81 4 роки тому

    Super clear as always. Thank you sir.

  • @0cho8cho72
    @0cho8cho72 Рік тому

    you really nailed it thanks

  • @antonioguiotto529
    @antonioguiotto529 3 роки тому

    what to say, your teaching skills are a warranty

  • @anuragtripathi1744
    @anuragtripathi1744 6 років тому +3

    Thanks i Was Waiting for this Video only

  • @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

  • @Dan-codes
    @Dan-codes 3 роки тому

    You're a fun instructor

  • @jetspray3
    @jetspray3 5 років тому +6

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

  • @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!

  • @PainDive1
    @PainDive1 6 років тому +1

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

  • @sebastianc4557
    @sebastianc4557 5 років тому

    You are amazing man!

  • @Originallost
    @Originallost 4 роки тому

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

  • @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!

  • @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.

  • @0xmassive526
    @0xmassive526 3 роки тому

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

  • @reng7777
    @reng7777 2 роки тому

    Great amigo!!

  • @ramoswebdev4708
    @ramoswebdev4708 2 роки тому

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

  • @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 ?

  • @furrane
    @furrane 6 років тому +6

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

    • @saimaacademy5537
      @saimaacademy5537 6 років тому

      ua-cam.com/video/Ygbf9yol7fU/v-deo.html://ua-cam.com/video/Ygbf9yol7fU/v-deo.html

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

  • @sandeepreddy5849
    @sandeepreddy5849 6 років тому +4

    Hey,
    Try some machine learning concepts in python

  • @eudo81
    @eudo81 6 років тому

    great video man!

  • @pedromateus9575
    @pedromateus9575 6 років тому

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

  • @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.

  • @kittoh_
    @kittoh_ 3 роки тому

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

  • @stevesamah4018
    @stevesamah4018 4 роки тому

    Very helpful.

  • @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

  • @mastercode7851
    @mastercode7851 6 років тому +1

    and i thought i know everything about python !

  • @atharvapagare7188
    @atharvapagare7188 6 років тому

    Thanks for the video

  • @eduardokiriakos6255
    @eduardokiriakos6255 6 років тому +3

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

  • @amits8112
    @amits8112 5 років тому +1

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

  • @berkercin6800
    @berkercin6800 3 роки тому

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

  • @limevan217
    @limevan217 5 років тому +1

    i like pythons .

    • @limevan217
      @limevan217 5 років тому +1

      Reptiles are the best.

  • @drgr33nUK
    @drgr33nUK 6 років тому

    pipenv is a massive improvement upon virtualenv.

  • @aakashyadav4760
    @aakashyadav4760 5 років тому

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

  • @NielsHilderink
    @NielsHilderink 6 років тому +3

    What about pipenv?

  • @user-yl8nc1pi9i
    @user-yl8nc1pi9i 4 роки тому

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

  • @wolfisraging
    @wolfisraging 6 років тому

    Finally
    Python

  • @MJ-lr7mj
    @MJ-lr7mj 5 років тому

    dude is too excited.

  • @samuelketechie1238
    @samuelketechie1238 6 років тому

    Great and thanks a lot

  • @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

  • @kera2403
    @kera2403 3 роки тому

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

  • @soumyamohapatra7621
    @soumyamohapatra7621 6 років тому +2

    Why don't you start using python?

    • @metaorior
      @metaorior 6 років тому +3

      cuz he's a web dev

  • @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........

  • @noufalvlpr
    @noufalvlpr 6 років тому +1

    use pipenv

  • @happychuckprogramming6048
    @happychuckprogramming6048 6 років тому

    nice video

  • @NJQYoutube
    @NJQYoutube 6 років тому

    it's so Pro

  • @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.

  • @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. :-)

  • @scottwillis5434
    @scottwillis5434 3 роки тому

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

  • @Jad.m08
    @Jad.m08 5 років тому

    I use anaconda prompt

  • @yousufazad6914
    @yousufazad6914 6 років тому

  • @2024comingforyou
    @2024comingforyou 3 роки тому

    I dont like such people