Move from Excel to Python with Pandas Transcripts
Chapter: Setup and installations
Lecture: Creating a conda environment
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
Once you launch your anaconda prompt, you show a couple commands on how to navigate and create new environments.
0:09
If you want to see a new environment or a list of all the environments that are installed, use "Conda info --envs". As you can see here,
0:16
I only have a base environment. The base environment is a little unique. You want to make sure that you keep that clean, and what I mean by that is,
0:23
for the most part, don't install additional packages in your base environment. You want to create a new environment where you do your work,
0:30
use, conduct, create, give it a name, we'll call it work, and we're going to tell it to use Python 3. And by just saying Python 3,
0:38
it's gonna automatically choose the most recent version of Python. As you can see here is using Python 3.8. Installing a couple of their libraries,
0:47
we choose yes. It'll download the packages and install them once it's done installing.
0:54
You want to activate your environment so you do Conda activate work and the problem changes
0:59
and now you can see that I'm working in the work environment. You also want to install additional packages in this environment.
1:05
So we're going to "conda install pandas xlsxwriter xlrd notebook", mix LRT and notebook. You don't have to install them all in one line.
1:18
You can do multiple installations, whatever makes sense for you.
1:22
But I think it's important that you understand have installed those packages and get used to
1:26
doing that because having different environments is a really important part or an important benefit of using Conda. Now we're done.
1:36
And if you get these kind of debug messages, you don't need to worry about that.
1:40
But the important thing is that now we have our two environments and we are in
1:46
our work environment, and that's where you're gonna want to be for the rest of this course, actually doing the work.