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,
0:02
you show a couple commands on how to navigate and create new environments.
0:08
If you want to see a new environment or a list of all the environments that
0:11
are installed, use "Conda info --envs".
0:13
As you can see here,
0:15
I only have a base environment.
0:17
The base environment is a little unique.
0:19
You want to make sure that you keep that clean,
0:21
and what I mean by that is,
0:22
for the most part, don't install additional packages in your base environment.
0:26
You want to create a new environment where you do your work,
0:29
use, conduct, create, give it a name,
0:32
we'll call it work, and we're going to tell it to use Python 3.
0:36
And by just saying Python 3,
0:37
it's gonna automatically choose the most recent version of Python.
0:41
As you can see here is using Python 3.8.
0:44
Installing a couple of their libraries,
0:46
we choose yes. It'll download the packages and install them once it's done installing.
0:53
You want to activate your environment so you do Conda activate work and the problem changes
0:58
and now you can see that I'm working in the work environment.
1:01
You also want to install additional packages in this environment.
1:04
So we're going to "conda install pandas xlsxwriter xlrd notebook", mix LRT and notebook.
1:15
You don't have to install them all in one line.
1:17
You can do multiple installations, whatever makes sense for you.
1:21
But I think it's important that you understand have installed those packages and get used to
1:25
doing that because having different environments is a really important part or an important benefit of
1:32
using Conda. Now we're done.
1:35
And if you get these kind of debug messages,
1:38
you don't need to worry about that.
1:39
But the important thing is that now we have our two environments and we are in
1:45
our work environment, and that's where you're gonna want to be for the rest of
1:48
this course, actually doing the work.