To activate an environment, you would run: activate gisenvĪnd to deactivate an environment, simply: deactivate If you later find out you need other packages to be added, you could use the install option of conda, for example: conda install –n gisenv matplotlib The –n flag is followed by the name of the environment (in this case gisenv), then you would choose the Python version which matches the one you already have installed (3.5, 3.6 etc.) and follow that up with a list of packages you want to add to it. We do not need to create a new environment, but, should you need to, the process is simple – here is an example: conda create -n gisenv python=3.6 arcpy numpy The default environment used by conda is called base environment. That allows you to work in environments with different packages and Python versions without affecting other applications. Think of an environment as a sandbox – you can set up the environment with a specific Python version and different packages. The list option of conda is useful, not only to find out if the package you need is already installed but also to confirm that you have the appropriate version.Ĭonda has the functionality to create different environments. You will see that for some of the packages installed, Esri is listed, showing they are related to the Esri installation. The third column provides clues on how the package was installed. The first column shows the package name, the second the version of the package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |