My Python Development Environment Setup - Full Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ส.ค. 2024

ความคิดเห็น • 111

  • @TechWithTim
    @TechWithTim  ปีที่แล้ว +7

    Looking to learn Web 3 and Blockchain development? Check out my new course: algoexpert.io/blockchain - use code "tim" for a discount!

    • @ExcelInstructor
      @ExcelInstructor 7 หลายเดือนก่อน

      How can I check my Python code step by step like in VBA?

  • @psd993
    @psd993 ปีที่แล้ว +63

    As a general rule, please try to avoid mixing conda and pip. It may not be much of an issue in this case, but i've been in datascience courses where the instructor did that... and later on it turns out conda can't keep track of the dependencies for things installed by pip and if you accidentally end up updating packages with conda, it breaks your environment.

    • @19bitmusic
      @19bitmusic ปีที่แล้ว +6

      Came here to say this.

    • @ahnafalislam7155
      @ahnafalislam7155 ปีที่แล้ว +4

      Can I install pytorch with pip and install the packages with conda only? My conda gets stuck in the "Solving Environment" stage for eternity, it installs so much easier with pytorch.

    • @AndrewMakarskiy
      @AndrewMakarskiy 5 หลายเดือนก่อน +2

      Why not just using the elegant pyenv? It takes care of pip, dependencies, python version

  • @uch195
    @uch195 ปีที่แล้ว +5

    this is exactly what i needed to start development after getting stuck in fancies for 12 hours, big up, keep the good work.

  • @phaedrus2633
    @phaedrus2633 ปีที่แล้ว +29

    I'm 64 years old, and I'm glad to see a young guy like yourself passionate about computers. I was fortunate, that just when I was leaving the Air Force, the PC craze was just starting, so that I was able to get in on the ground floor. Unfortunately, I made my living through other trades. I freely admit, I don't pick up concepts as fast as I used to, and you have pretty compact, and very efficient way of communicating. However, you seemed to have left a big hole in the Anaconda concept by not explaining thoroughly how to add a different version of Python in a virtual environment. I tried your suggested conda create --name programmingexpert python=3.10 method, and it didn't work. So, I watched another TH-cam video and learned that it can be done by a much simpler, and more generic way of conda search python, for all of the newer, and older versions Python. Then, there are channels that Anaconda can use, such as conda search -c conda-forge python. I'm wondering, if that's what you meant: conda search -c programmingexpert python?

    • @jango9973
      @jango9973 ปีที่แล้ว +2

      I had to go back one revision. I have 3.11 installed but I could only create a conda env with 3.10...which wasn't installed. He did the same in the video where he had 3.10 installed but installed conda for v3.9

  • @gvikram18
    @gvikram18 ปีที่แล้ว +16

    Exactly what i needed to get into python development after couple of years. Thanks Tim

  • @nilutpaldas8336
    @nilutpaldas8336 ปีที่แล้ว +5

    Much needed video, as I'm starting my data science journey, and I'm looking for complete setup from conda to vs code.

  • @blubehriluv
    @blubehriluv ปีที่แล้ว +5

    You always post at the perfect times Tim!
    Wanted to add for anyone that is having issues with python/conda --version. Make sure to restart your CMD shell before running those. After installing VS Code, it says, "Add to PATH (requires shell restart)" so I assume that would've been the same case for the CMD. After intalling conda/python I received the error (can't find python or conda even though the where command worked perfectly), and after double checking my environments, I saw they were properly added to PATH. I just needed to restart my CMD.

    • @mac6
      @mac6 ปีที่แล้ว +1

      haha wish I saw this comment before I spent ages confused lol

  • @jolenebett5043
    @jolenebett5043 ปีที่แล้ว +3

    Thank you so much for explaining this, I've been struggling all week to understand environments and just got even more confused, this has helped greatly.

  • @paulhbartley8030
    @paulhbartley8030 ปีที่แล้ว +9

    At 8:00, you mention using pip to install modules into your Anaconda environment. This is not recommended. You should be using conda install within an Anaconda environment.

  • @fawadmahdi
    @fawadmahdi 8 หลายเดือนก่อน

    This was indeed very useful. Made all the environment variables stuff easier to understand and finally being able to run python within command prompt

  • @jeffzxy
    @jeffzxy 8 หลายเดือนก่อน +1

    Very good video! covered all questions I had for using VScode for python! Thanks Tim!

  • @chrism6880
    @chrism6880 ปีที่แล้ว +6

    What made you choose Anaconda for env management over something like pipenv?

  • @ML_Minded
    @ML_Minded 10 หลายเดือนก่อน +1

    hey @TechWithTim, Thank you for your video, It help me solve my env issue.

  • @md.redwanhossain8822
    @md.redwanhossain8822 ปีที่แล้ว +13

    Anaconda is dedicated for data science. All python programmers do not do data related tasks. Also, the installation size is huge for no reason.

    • @lewessays
      @lewessays 4 หลายเดือนก่อน

      you have other options... he is showing his own environment. I personally use poetry.

  • @jrgenolsen3290
    @jrgenolsen3290 ปีที่แล้ว +1

    Very good tutorial... your choosing
    VS code is a gode idea because every language (almost) are supported in
    VS code...

  • @tennotsukai87
    @tennotsukai87 ปีที่แล้ว

    Perfect instructions for what I've been looking for. Thanks.

  • @hugohebert3036
    @hugohebert3036 ปีที่แล้ว

    You're an absolute legend

  • @MaBuSt
    @MaBuSt ปีที่แล้ว +6

    For better or worse, Anaconda started charging large commercial users (>200 employees using the package managers) $15/user/month and lot of corporate users had to stop using it in their professional life. I don't think the charge is unwarranted given the convenience Anaconda has delivered to the data science community, but also medium sized corporations that look at software as a Cost Center don't like getting slapped with a new huge bill out of nowhere for something there are 'free' alternatives for (literally venv ships with python). Anywhoo. this is the can of worms that comes up anytime people do Dev Environment demos' (venv, poetry, conda, etc.)

  • @Vue-daigle
    @Vue-daigle ปีที่แล้ว +2

    Great useful video, thanks Tim.

  • @techmentormaria
    @techmentormaria ปีที่แล้ว

    Omg I'm relearning python (last time I used it was 6 years ago) and this has been so helpful. Thank you!

  • @AnkurMH30
    @AnkurMH30 ปีที่แล้ว

    Following Your Videos From Basics 😌❤️

  • @prashlovessamosa
    @prashlovessamosa ปีที่แล้ว

    Thanks brother anaconda stuff help me alot i am a beginner thank you

  • @tembomedia6902
    @tembomedia6902 ปีที่แล้ว

    Finally I learn what Anaconda is for...

  • @mecrayavcin
    @mecrayavcin 2 หลายเดือนก่อน

    I also use Python Indent

  • @Scrungge
    @Scrungge ปีที่แล้ว

    Perfect introduction. Thank you!

  • @TheKristenLFoster
    @TheKristenLFoster ปีที่แล้ว

    Super helpful -- thanks for sharing this with us, Tim!

  • @LawOfNewton7
    @LawOfNewton7 8 หลายเดือนก่อน

    youre a godsend

  • @GrumpyDave1
    @GrumpyDave1 9 หลายเดือนก่อน

    Great content although I did find the comments even more useful. Great community.

  • @sambad8429
    @sambad8429 ปีที่แล้ว +1

    What do you think about poetry for creating python packages?

  • @Kol1bri
    @Kol1bri ปีที่แล้ว

    Thank you very much for this Tutorial!

  • @fpark101
    @fpark101 ปีที่แล้ว +1

    How to deploy Python project with anaconda?

  • @jonathanlegendre279
    @jonathanlegendre279 ปีที่แล้ว +2

    Surprised to not see pipenv for the virtual environment section. It's great because it handles the dependencies for you (aka it'll install numpy when you install pandas because pandas needs numpy to work)

    • @yonimelki
      @yonimelki ปีที่แล้ว +2

      Agree, I think that poetry with pyenv is the best option rather than pipenv or conda

  • @christian37ism
    @christian37ism ปีที่แล้ว

    I use virtualenv to create virtual environments and it works just fine. Even though I have conda installed.

  • @afin4684
    @afin4684 2 วันที่ผ่านมา

    what did pyCharm do to you? seems like a very good idea. Why is vscode better than it?

  • @punuravathsara
    @punuravathsara ปีที่แล้ว +2

    Nice Videos Love Your Videos👍👍👍👍

    • @TechWithTim
      @TechWithTim  ปีที่แล้ว

      Thank you so much 😀

  • @jannatgaoshiqqalb3598
    @jannatgaoshiqqalb3598 ปีที่แล้ว

    great good luck Tim!

  • @datamonster3212
    @datamonster3212 ปีที่แล้ว +3

    I don't like Anaconda as it messes with the system quite a bit. I prefer Pipenv for the virtual environment and Pyenv to manage multiple Python versions.

  • @yahia_dua
    @yahia_dua 8 หลายเดือนก่อน

    Pretty clear thnk u🎉

  • @emilkhojayev4645
    @emilkhojayev4645 ปีที่แล้ว +1

    When I type "conda" into cmd my terminal just freezes and doesn't return anything. I added conda to path what am I doing wrong?

  • @realCleanK
    @realCleanK 10 หลายเดือนก่อน

    Thank you!

  • @gtALIEN
    @gtALIEN หลายเดือนก่อน

    should we add to path for vscode

  • @Milorae
    @Milorae ปีที่แล้ว +5

    I wish you would've talked more about why not pycharm. It does everything you have set up in video and I have yet to encounter any problems with it. It creates venv for every project, has auto completion, lots of extensions, formats code on save too, has terminal and package manager, tools for db, i mean it's a full package and does a great job at that. And it's also free.

  • @kasksahah
    @kasksahah 3 หลายเดือนก่อน

    when i put "conda activate " it tells me to run "conda init" before, but when i do i just keeps repeating to run it before. what is happening? what do i do?

  • @K0D0R0
    @K0D0R0 4 หลายเดือนก่อน

    5:00 How can you install packages into a “wrong” version if you are using virtual environment?
    Also, recommending anaconda just because you “used it for a long time” without at least explaining venv (which is built-in)…

  • @ag-mor
    @ag-mor ปีที่แล้ว

    As always, I love your vids but at 13:25 the command should be ">conda activate robert" you can look in the down right corner that the enviroment didn't change. Sorry I couldn't help myself with that.

  • @infinitespace1982
    @infinitespace1982 ปีที่แล้ว

    For some reason, I can't access aklearn, even though it has been installed in my environment

  • @LibertyRecordsFree
    @LibertyRecordsFree 4 หลายเดือนก่อน

    "'conda' is not recognized as an internal or external command,
    operable program or batch file."
    I just installed it so I am not sure what is wrong. Someone to help ?

  • @gusfring8333
    @gusfring8333 7 หลายเดือนก่อน

    im using vs code on windows...when i change the interpreter version and run 'python --version' it always returns the base version no matter what the interpreter selected....example...in my Virtual env i have 3.10.12...but it returns base version 3.11.5....what could be the reason can you help pls?
    im having issues with installing opencv library...it always return could not build wheels

  • @AnotherAgnostic
    @AnotherAgnostic ปีที่แล้ว

    Do I need multiple versions of python? If so, how do I add them?

  • @akatrosh6519
    @akatrosh6519 ปีที่แล้ว

    I have a problem with this formatting, having the same dict as you, mine is formatted to be in 1 line. How to make it format like in your video? I'm using black formatter.

  • @johncastillo6574
    @johncastillo6574 8 หลายเดือนก่อน

    I’m here because I want to start learning Python. I’m already lost. Is there some other video/ step I should watch/ learn before this? Complete novice here. Any information would be greatly appreciated.

    • @colin7270
      @colin7270 8 หลายเดือนก่อน

      I'd recommend PyCharm CE (free) for a beginner.

  • @seatownrocks
    @seatownrocks 7 หลายเดือนก่อน

    Why are we using conda? just to create a virtual environment? the commands to do so using venv are quite simple. is there some other reason to use conda? i only ask because conda is not activating the environment for me currently. it keeps saying, "CondaError: Run 'conda init' before 'conda activate' ". When I run "conda init" it says "No action taken" so the result is I cannot activate the created environment using conda. Do you know how to fix this conda issue? Thanks.

  • @codewith7360
    @codewith7360 ปีที่แล้ว

    Tim, I have a small question "did you attend any undergraduate universities"?

  • @b857
    @b857 ปีที่แล้ว

    there is a free version of tabnine also

  • @acobrapilot
    @acobrapilot ปีที่แล้ว +1

    Great overview, but Anaconda is too heavy.....

  • @luis7486
    @luis7486 ปีที่แล้ว

    which color theme is he using?

  • @ttuurrttlle
    @ttuurrttlle ปีที่แล้ว +2

    Thanks, this was a great video. I do have two questions about anaconda and virtual environments.
    Is there a recommended way to version control the virtual environments you've created in anaconda? At work I RDP into a server that multiple have access to and use python on, our virtual environments just use venv and are scattered around. Anaconda seems like the ideal solution to centralize, but I'd be worried about people accidentally updating/deleting environments.
    Second question, for some reason, when installing anaconda on a new machine for all users (in ProgramData) the option to add conda to the PATH was greyed out and disabled so I couldn't select it. Not sure why that is. (Edit, actually I was able to add it to the PATH afterwards manually, I thought it might not work cause the option was disabled)

  • @CarlReef_Studios
    @CarlReef_Studios 7 หลายเดือนก่อน

    what theme do you use?

  • @TyrellJoanna
    @TyrellJoanna ปีที่แล้ว +1

    Emacs ?

  • @vamshidharkasulabada
    @vamshidharkasulabada ปีที่แล้ว

    how can i make conda(base) as not default while opening a new terminal

    • @jenss4083
      @jenss4083 ปีที่แล้ว +1

      as you formulated the question, I marked it pulled it in a new tab and got beautiful answers. Thanks for question

  • @bryanstark324
    @bryanstark324 9 หลายเดือนก่อน

    Is this really the best way?

  • @Arkantosi
    @Arkantosi ปีที่แล้ว

    So if you are at base env, then running 'conda activate newenv' does apparently not change the interpreter in VScode. For example I have the interpreters "Python 3.11.4 ('general': conda)" and "Python 3.11.4 ('base': conda)" installed. At start, only the base interpreter is chosen in VScode and at the bottom right corner I can see "Python 3.11.4 ('general': conda)", so all is well. Now, when I go 'conda activate general' it changes the environment but the text at the bottom right corner is still "Python 3.11.4 ('general': conda)". Do I always need to also manually change the interpreter when I programmatically change the environment in conda?

    • @yifeipei5484
      @yifeipei5484 9 หลายเดือนก่อน

      please use cmd. The powershell has issues

  • @qman2852
    @qman2852 ปีที่แล้ว

    What are your thoughts on anaconda vs poetry?

    • @TechWithTim
      @TechWithTim  ปีที่แล้ว +1

      I prefer anaconda, just what im used to

  • @inertmosaic2220
    @inertmosaic2220 ปีที่แล้ว

    Can you add environments using miniconda?

    • @infinikeys
      @infinikeys 9 หลายเดือนก่อน

      Miniconda is Anaconda less ALL the packages for data science. Everything else works exactly the same.

  • @maheshwaran8355
    @maheshwaran8355 ปีที่แล้ว

    what theme he using?

  • @lch80123
    @lch80123 ปีที่แล้ว

    After I added Anaconda to system path, my anaconda prompt started to have problem upgrading its conda version. I solved it by removing anaconda to system path so I am not sure adding that is a good idea or not (I used windows)

    • @KarolWasiluk
      @KarolWasiluk ปีที่แล้ว

      Run Anaconda prompt as administrator.

  • @Chris-op7yt
    @Chris-op7yt ปีที่แล้ว

    so every time you load your program to work on it, you need to manually set python interpreter..every single time? if that's the case, that's kinda lame.

  • @syednaqvi9212
    @syednaqvi9212 ปีที่แล้ว

    VS code is good but it's too laggy for slow computers. I'd prefer sublime.

  • @sleepystonedmonk
    @sleepystonedmonk ปีที่แล้ว +1

    Linux is missing in your development environment ;)

  • @mr.highschoollocksmith6080
    @mr.highschoollocksmith6080 ปีที่แล้ว

    Super annoying, I’m basically brand new to coding, I’m trying to set up my anaconda to python version 3.11 but apparently it’s just failing to find any packages needed for that, it did 3.9 super easy for obvious reasons, so am I correct in assuming anaconda doesn’t have support yet for 3.11?

    • @md.redwanhossain8822
      @md.redwanhossain8822 ปีที่แล้ว

      Python 3.11 released last month. Most of the python packages are not compatible with 3.11 now. Wait 2-3 months more.

  • @adamcaretta4715
    @adamcaretta4715 8 หลายเดือนก่อน

    Black formatter just puts spaces in for me, it won't put things onto new lines like your dictionary did

  • @cbbcbb6803
    @cbbcbb6803 ปีที่แล้ว

    When making these videos, do not say "on Linux, probably a similar thing". If you don't use Linux, then ask a friend what that "similar thing" would be. Then say it in your video.
    Otherwise, an extremely good video.

  • @NP-zg3hq
    @NP-zg3hq ปีที่แล้ว

    Uninstalling anaconda, for pycham

  • @nascentnaga
    @nascentnaga ปีที่แล้ว

    conda OUT
    poetry IN

  • @andreiarseni362
    @andreiarseni362 ปีที่แล้ว +1

    Second

  • @hydradevs
    @hydradevs ปีที่แล้ว

    ❤❤❤❤❤🎉

  • @andrub23
    @andrub23 ปีที่แล้ว

    Can someone in youtube world, anyone, concoct some new way of presenting "advertisers", supporters or whatever word you choose to represent them.

  • @protopan7722
    @protopan7722 ปีที่แล้ว +1

    It's pronounced as Jinja not Jenga 😂

  • @thestopper5165
    @thestopper5165 ปีที่แล้ว

    One quibble: VS Code will NOT list 'every interpreter'. It studiously ignores pre-Python 3 - it 'finds' envs that use a pre-Python3 interpreter, and then removes them from the display as you watch.
    So anyone whose code base includes projects written in Python 2.7 (say) is outta luck - if you want to use VS Code, you've got to refactor everything.
    For anyone who had been writing Python of any complexity for ten years, this involves refactoring literally tens of thousands of lines of code. (Just the 'print' statements FFS). Or... just don't install VS Code: 'free' is costly if it doesn't do the most basic job.
    *inb4* "Python 2.7 is no longer maintained" - so what? There are tens of thousands of code-bases across the globe that are written in the compsci equivalent of Etruscan - and _those_ have to be maintained.
    VS Code is typical Microsoft dreck: a bewildering array of 'features' that most users will never use, and guaranteed to let the user down when it matters.

  • @jango9973
    @jango9973 ปีที่แล้ว

    "VEN V." hahahaha, venv = virtual environment

  • @arunsandhu777
    @arunsandhu777 9 หลายเดือนก่อน

    I don’t find windows comfortable…

  • @wilamshields
    @wilamshields 8 หลายเดือนก่อน

    Desperately trying not to use expletives, but these instructions are incomplete

  • @rainerzufall889
    @rainerzufall889 6 หลายเดือนก่อน

    anotherone thinks windows is standart....

  • @chetanreddy533
    @chetanreddy533 ปีที่แล้ว

    first

  • @RetoonHD
    @RetoonHD ปีที่แล้ว

    First

  • @user-hn1cy5ee5l
    @user-hn1cy5ee5l ปีที่แล้ว

    most powerful ide for python is pycharm, vs code sucks

  • @jparks6544
    @jparks6544 7 หลายเดือนก่อน

    VSCode? Seriously?

    • @afin4684
      @afin4684 2 วันที่ผ่านมา

      Pycharm is better!

  • @akshattamrakar9071
    @akshattamrakar9071 ปีที่แล้ว

    I have a better answer "use poetry"