Anaconda Environment Install Python Packages

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video we're gonna cover how to manage Python packages the modules are libraries whatever you want to call them with an anaconda environment so if you check out the other video and I'll try to remember to link and Karger that above we went through how to create and delete environments in anaconda in the video previous to this one also go ahead and check out open source options calm or I have tutorials and courses if you're interested in more content so let's start by opening up our anaconda prompt so I'm gonna go to my anaconda 3 prompt here and let's just take a look at the environments we have so we can select one of them so I'm going to type Conda env list and this will list my environments might take just a second do that and as you can see right now I only have the base environments though so let's go ahead and create a new one so let's go Conda create - - name and we'll call this call this PI 3 6 and we'll say or PI 3 7 and we'll say python equals 3.7 for python version 3 play 7 we're gonna go ahead create this environment this is gonna take just a minute to do ok and now we can hit yes to proceed and it's going to install and download those necessary packages we have an environment okay Chanel let's go ahead and activate that environment by doing Conda Conda activate PI 3 7 so now our environments activated and from this point it's really easy to install packages we can just use Conda install so let's say I want to install GTL which is a common package for geographic data manipulations like anaconda install G Dell and it's going to install on this environment take just a second to do this you can also use pip to install packages and they'll show you how to do that here in just a minute I'm just gonna say proceed and this one might take a little while to install but let's just we'll just give it a chance to do it okay so now that is installed and we can check to make sure its installed so if we want to see all the packages installed with this current environment we can do condo list this is going to take just a second but you can see that we have all these packages installed for this current environment you can see G del is one of those if I want to list the information for just a single package I can do Conda list - f4 full name and type G del okay and there you have it and so that shows Cheeto now let me show you how you can install a package from pip so let's say I fired you Conda install I'm not sure this will look or not Conda install spot PI which is a package for model calibration and parameter estimation let's hit enter and see if Conda finds this one or not okay it's actually gonna find it okay it didn't find this so it couldn't find it in any of the current channels let's say I won installs install this with pip you can do this the same way you would with pip normally so we'll just you Python to use Python to install - and pip install spot PI and I'm gonna hit enter and we're gonna get a spot PI installed here in just a second once this gets going okay and so you can see that spa Pi was installed here so now I can do let's do Conda list and will list all the packages to make sure this shows up in there you can see spot pi shows up there and we can do also the Conda list - f spa PI as a nice realize that my I didn't increase my text so I hope that this is has been big enough for you throughout this video ok so I made that a little bigger there now may be too late though now what if I want to list the packages for another environment well that's easy to do I'm just gonna tag Conda list - and base so bases my other environment I have here and tells I want to list for the patter for the environment with this name let's go ahead and click hit enter and base has a lot of packages installed it's the one I generally use so it's gonna take a minute to do this there we go so now you can see that I've listed these for base and you can see I have a lot more packages here on base than I had for pi 37 ok and let's see let's do Conda list and we can stream these together you can use condo list - and base - F let's look for G Delfino should be installed on base and that should show it a show up here ok there you go so I have G dal version 3.0 point two on base and I can do Conda list - and base - F numpy numpy and that's gonna shown me numpy with the numpy version so this is how you can see what packages you have and how you can install additional packages with PIP and with Conda now I'm going to show you one more thing and this could be important because maybe you want to see only the packages you've used that you've installed with Conda and so we can do Conda lists - - no - pip and this will shows only the ones we've installed and uh and so when I do this spot pie should not show up on the list so let's go ahead and check this okay and you see all the spot pie did show up there and it came from pie pie okay so I'm not sure why it did that because I did install it with pip anyway I look into that and see if I can figure out exactly why that's happening and we're still seeing spot high it could because register under a different channel even though I dealt with Pip and not with Conda anyway that's how you can manage your Conda packages how you can install them into a specific environment so thanks for watching this video and again go ahead and check out open source options calm but more content and more information have a great day
Info
Channel: Geospatial School
Views: 54,995
Rating: undefined out of 5
Keywords: open source, open source options, open source software, python, anaconda, python environment, anaconda envrionment, python anaconda, anaconda python, anaconda python environment, python packages, python modules, python libraries, install python packages, python tutorial, anaconda tutorial, anaconda environment tutorial, python environment tutorial, data science
Id: PPKj9ic5MmI
Channel Id: undefined
Length: 7min 34sec (454 seconds)
Published: Tue Apr 28 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.