Great explanation, man! I've been watching some of your videos and they're great! Very informative and with a simple approach. Congratulations for your good work!
@Aditya Wagh Thanks my dude! Just trying to keep it interesting!! Def appreciate the suggested topics. Let me see what I can do for ya, hope I can make it happen this year! Stay tuned!
Luuuuuuke ❤I am revisiting these videos after initially watching them a couple of years ago when they first came out, and it’s still one of the best tutorials! You have made everything so accessible and easy to grasp. Your videos are excellent supplementary side information I am using as a graduate student in data science program 🎉
Systematically amazing video.. I've been watching and practicing every single step (from installing anaconda). I will continue watch this video tomorrow. I am new to python. So I will savour my moment of learning it. Once again, thank you!!
Luke, this series is so awesome. Been trying to figure out how best to setup anaconda and virtual environments and this is by far the clearest and best guide. I just had two quick Qs: 1) in your terminal and the .py files stuff pops up so you can autocomplete what you are typing; how do I set that up? 2) My terminal is the power shell whereas yours has the environment in parentheses and the dollar sign at the end; how do I get that setup? Thanks again for these amazing videos!
Mac, thanks for the kind words! So glad that this tutorial has been helpful for you! 1) For the autocomplete I installed an add-in that does this and is specific to the mac terminals, since you are using Powershell I found this option, but there may be better options: dev.to/ofhouse/add-a-bash-like-autocomplete-to-your-powershell-4257 2) This is a custom ZSH theme that is specific to mac (& linux) terminals (theme: PowerLevel10K). For powershell you'll need to set up powerline (which is a similar theme) to customize how the terminal looks (You won't be able to get it exactly the same as mine, but you can customize to pretty close). Here is a link & vid on how to set this up: docs.microsoft.com/en-us/windows/terminal/tutorials/powerline-setup
After activating venv2, don't we need to change Python interpreter too? I mean, for running venv2, interpreter for 3.6.12 (venv1) was enough, it seems, just asking if it could be a problem in som cases.. Anyway thanks for great explanation, I'm actually deciding between pip and conda, which could be better, but I will probably go for conda as I plan to advance from Data Engineering to Data Analytics in a fee months.. Good luck Luke!
The way you talk and your visualization is simply awesome. The only confusion that i got is do i need to create virtual environment for every code that i am gonna write? What if I didn't create any virtual environment and got into this issue , will it be fixable then ?
Thank you! And you should make an environment for every project. One project may have multiple python files that can use the same environment. But if i'm changes projects I create a new environment.
Hey Luke. You did great job on putting yourself on python starters' shoes. The series is just awesome. Thank you so much. Just one question: at 15:50 you said we need to restart the VS Code so that we're able to select the new installed virtual environment. But you didn't restart from the creation of "ven2", just needed to "conda activate venv2" in the command line (the Python interpreter still remains "venv1" at the left down conner). So it's important to select environment in the command line. Why do we even bother about the Python interpreter of VS Code at the left down conner?
So that restart thing has been fixed... you don't need to restart anymore to select the environment for the jupyter notebook... For the command line, you never needed to restart
Can we conclude that Virtual enviroment is like writing latex file(tex) with all the package used called or listed in the top of the file. So for virtual enviorment we install all the particular package version require for that file?
hey Luke, I'm learning datascience but stuck with some sandbox online env in browser. Turicreate needs python 3.7, i created env with pip, conda, pipx but while installing turicreate it return with error "upgrade pip or problem with package. Please make tutorial for that, much appreciated
Great Job Luke. I've been following this playlist and so far its going great. Just one ques though, math code works fine. But, numpy is not working for me. when I tried installing it the output came 'already installed'
Hey Pratham, thanks for following along and for the kind words! Regarding the file, I didn't show this part but I created the file_1.py and saved it to my desktop. You can create the file a number of different ways. I recommend using the terminal: 1) Navigate into the folder where you want to save the file (cd Desktop) 2. Create the file (touch file_1.py)
@@prathamsethi9892 What terminal are you using? if mac, all you need to do is open terminal, type "cd Desktop" then "touch file_1.py" the numpy error is very strange, I'm not sure how you are getting that.
Hi Luke. I'm a beginner in this world of programming languages and Data World and your videos are helping me a lot! but i'm having a huge troubles with the virtual environments . I did every single step you did in your videos of installing python, anaconda and VS code. everything seems to be perfect. I write the code to create the new environment and it runs well but... when I try to activate it does nothing. literally nothing. Don't put error, does not activate it and I don't know what to do now
@@LukeBarousse Vs code shows me by default automatic, the powershell terminal, I have tried there and it does not work and the same error in the python terminal. I don't know if there is a conda terminal that I should open and how to open it, could it be that?
So the thing is as long as i am not updating any module in pip or conda, it should be working fine in global environment without creating any virtual environment. am i right?
Yes, for very simple python scripts that you will never have to use again... but I highly recommend creating environments as it will save you when you come back to run a python script years from now and you have the correct environment ready to go
guys ... i have a problenm i alr install the numpy module but when i run it says no module found but when i install it again it says the module has been downloaded ..what shoul i do?
@@LukeBarousse is it conda activated venv1 ? I alr use it and nothing happened...idk but urs seem kinda diff u have the smth like (base1) or (venv1). Mine doesnt like that and i wonder why?
Can we not write ( say in the comments) in the beginning of the code itself the list of packages with their versions we used when created and ran the code successfully. This way if we transfer this our friend or say a teacher to 50 students, then can use this list in anytime in future to create the specific virtual env to run that code. Am I talking correct here? Or is there any other way to manage this?
Thats a great question, there actually is a more common way to manage this. In python projects, you can recored the versions of your packages to a 'requirements.txt' file. Conda or pip as code to do this. Then if someone loads your code on their computer they just use the requirements.txt file to load the required versions of the packages when creating their virtual environment on their computer! It's actually a pretty cool concept
Hey Luke, great videos My Terminal looks different than yours (did the same as you regarding installation etc.) but you terminal says 2:python, whereas i can only choose powershell og cmd, how do i get the same option as you, for instance my terminal doesn't show which virtual environment i am in if i use Powershell or if it is cmd it shows which virtual environment but i can't use clear for example. Is there anyway i can make it like yours? Kind regards Jens
It's a little bitter harder as I think you are on a Windows machine. You won't beable to do exactly the same as me. Here is an article that may be a good start: medium.com/@hjgraca/style-your-windows-terminal-and-wsl2-like-a-pro-9a2e1ad4c9d0
Hello Luke, I am new to programing and want to expand my knowledge. I have followed your previous vids and installed everything correctly. Until this vid. My terminal looks different as you are using a mac. In the previous vids you showed how to do both platforms. Can you please explain how to do it for win 10. I would try to install "conda instal numpy==/1.17" with no luck in the python terminal. the terminal I am using doesn't generate the "$" symbol for me or have the different colors. Thanks for the help.
Hey Eddie, you don't need to worry about the $ symbol. Thats just the standard symbol on the mac. Let me see what I can do for a windows tutorial, but overall the command should be the same
Hi everybody, i have already installed numpy but keep me saying " ModuleNotFoundError: No module named 'numpy' " , if I go to "Run" then "Run without debugging" work just fine .I don't know why
Hey Pablo, it sounds like you are not in the correct environment for your jupyter notebook. You need to change the environment to be in the same one that you installed numpy.
Hi Luke, when I try to run Python in the cmd I get the message: "This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load.". I'm not exactly sure what this means or how to fix this.
The error message tells you that the Python interpreter from the Conda environment was found, but that 'conda activate ' has not been called. So you need to activate the enviornment
Hey Luke please give me a solution for this, I am using Windows 10 from numpy.core._multiarray_umath import ( ImportError: DLL load failed: The specified module could not be found.
Hi, I asked a question on another post, but then I came here. So, I downloaded anaconda on my Mac, but do I need to add a conda extension to my VS code?
Hi Zakeya, the only extension that is required is the python one I point out in the next video (p.5). There is a conda extension but it is not necessary. Let me know if you have any other questions!
@@LukeBarousse Thank you for your prompt response. I truly appreciate it. I am new to this, so my questions could be basic. The thing is that when I follow the steps in this video and reach the part where I have to install numpy it gives me this error: bash: conda: command not found
@@zakeyaalsada616 No problem! To help troubleshoot, are you using Mac or WIndows? The problem is that the "conda" command was not added to be used in your Terminal/Command Prompt. For windows, if during the Anaconda setup you didn't select to add "conda" to path this would cause this.