|
6 | 6 | "source": [
|
7 | 7 | "# Install using Conda\n",
|
8 | 8 | "\n",
|
9 |
| - "The ArcGIS Python API is distributed via conda. Conda is a popular package and environment manager application that helps you install and update packages such as the ArcGIS Python API and their dependencies. To learn more about conda, see the [getting started guide](http://conda.pydata.org/docs/get-started.html) for conda.\n", |
| 9 | + "The ArcGIS API for Python is distributed via conda. [Conda](http://conda.pydata.org/docs/get-started.html) is a popular package and environment manager application that helps you install and update packages such as the ArcGIS Python API and their dependencies. You can install the API through two main workflows - install through anaconda or install using ArcGIS Pro. Both are outlined below.\n", |
10 | 10 | "\n",
|
11 |
| - "## Get Conda\n", |
12 |
| - "Install the latest version of [Anaconda for Python](https://www.continuum.io/downloads) (for Python 3.5), if you don't already have conda. The ArcGIS Python API requires Python 3.\n", |
13 |
| - "If you have installed ArcGIS Pro 1.3, you already have conda and you can use that instead of downloading Anaconda.\n", |
| 11 | + "## Step: 1 Get Conda\n", |
| 12 | + "Install the latest version of [Anaconda for Python](https://www.continuum.io/downloads) (for Python 3.5), if you don't already have conda. The ArcGIS API for Python requires Python 3.\n", |
| 13 | + "If you have installed ArcGIS Pro 1.3 or later, you already have conda and you can skip to the next step.\n", |
14 | 14 | "\n",
|
15 |
| - "## Install arcgis package\n", |
16 |
| - "Download and install ArcGIS Python API in your conda environment, using the following command in your terminal. If you are running a Windows OS, you can type this into your command prompt or PowerShell or if you have installed ArcGIS Pro, then into your 'Python Command Prompt' shortcut within the ArcGIS Pro program group in Windows start menu. If you are running a Mac or Linux OS, you can type this into your terminal application.\n", |
| 15 | + "## Step: 2 Install `arcgis` package\n", |
| 16 | + "To download and install the API in your conda environment, type the following command in your terminal.\n", |
17 | 17 | "\n",
|
18 | 18 | " conda install -c esri arcgis\n",
|
19 |
| - " \n", |
20 |
| - "In the screen shot below, I am typing this command into the Windows command prompt.\n", |
| 19 | + "\n", |
| 20 | + "If you are running a Windows OS, you can type this into your command prompt or PowerShell. If you are running a Mac or Linux OS, you can type this into your terminal application. In the screen shot below, I am typing this command into the Windows command prompt.\n", |
21 | 21 | "\n",
|
22 | 22 | "\n",
|
23 | 23 | "\n",
|
24 |
| - "You can now start using the ArcGIS Python API in your Python IDE of choice, or from the Jupyter Notebook environment.\n", |
| 24 | + "#### Install using ArcGIS Pro\n", |
| 25 | + "ArcGIS Pro 1.4 and later gives you a **Python Package Manager** interface that can be used to download and install the ArcGIS API for Python. As shown in the screen shot below, from your Pro backstage, click on the 'Python' tab. Then click on 'Add Packages' button and type `arcgis` into the search bar. You may have to click on the 'refresh' button to ensure you are getting the latest version of the package. Then click 'Install' and accept the terms and conditions.\n", |
| 26 | + "\n", |
| 27 | + "\n", |
| 28 | + "\n", |
| 29 | + "If you have installed ArcGIS Pro 1.3, then you can use the **Python Command Prompt** shortcut within the ArcGIS Pro program group in Windows start menu and type the conda install command explained earlier. Depending on how you installed Pro, you might have to start this prompt with elevated privileges. \n", |
| 30 | + "\n", |
| 31 | + "You can now start using the API in your Python IDE of choice, or from the Jupyter Notebook environment.\n", |
25 | 32 | "\n",
|
26 | 33 | "### Upgrade from older arcgis package\n",
|
27 | 34 | "If you are upgrading from an older version of arcgis package, run the following command in your terminal:\n",
|
28 | 35 | "\n",
|
29 | 36 | " conda upgrade -c esri arcgis\n",
|
30 | 37 | "\n",
|
| 38 | + "If you are using ArcGIS Pro 1.4 or later to install the API, then as you guessed, you can use the **Update Packages** tab in the screen shot above to update.\n", |
| 39 | + "\n", |
| 40 | + "----------------------------\n", |
31 | 41 | "### Offline install\n",
|
32 | 42 | "If you would like to install the API on a machine without internet or, if your workstation is in a disconnected network, you can do so in three steps. \n",
|
33 | 43 | " * First, install the latest version of [Anaconda for Python](https://www.continuum.io/downloads) (for Python 3.5). It is preferable you install full anaconda and not miniconda. \n",
|
34 |
| - " * Next download the latest version of the API from [Esri's channel on anaconda.org](https://anaconda.org/Esri/arcgis/files) for your OS. For instance, if you are installing on Linux 64-bit, then download the package titled `linux-64/arcgis-1.0-py35_1.tar.bz2` into a known location.\n", |
| 44 | + " * Next download the latest version of the API from [Esri's channel on anaconda.org](https://anaconda.org/Esri/arcgis/files) for your OS. For instance, if you are installing on Linux 64-bit, then download the package titled `linux-64/arcgis-1.0.1-py35_1.tar.bz2` into a known location.\n", |
35 | 45 | " * Run conda from your terminal and install the API using the following command\n",
|
36 | 46 | "\n",
|
37 |
| - " `conda install /path_to_package_download_folder/linux-64/arcgis-1.0-py35_1.tar.bz2`\n", |
| 47 | + " `conda install /path_to_package_download_folder/linux-64/arcgis-1.0.1-py35_1.tar.bz2`\n", |
38 | 48 | "\n",
|
39 | 49 | "If you find yourself installing the API in multiple machines or, if you need to use miniconda in your workflow, it might be beneficial to set up an offline conda channel. Refer to the [Esri Knowledge Base article for instructions](http://support.esri.com/Products/Developers/scripting-and-automation/arcgis-python-api/1-0#knowledge-base).\n",
|
40 | 50 | "\n",
|
| 51 | + "-------------------------------\n", |
41 | 52 | "## Start jupyter notebook\n",
|
42 | 53 | "To use the API in the Jupyter Notebook environment, use the following command in your terminal:\n",
|
43 | 54 | "\n",
|
44 | 55 | " jupyter notebook\n",
|
45 | 56 | "\n",
|
46 |
| - "Refer to this doc for more help on [how to use the notebook environment](https://developers.arcgis.com/python/guide/Using-the-Jupyter-Notebook-environment/)\n", |
| 57 | + "Refer to this doc for more help on [how to use the notebook environment](https://developers.arcgis.com/python/guide/using-the-jupyter-notebook-environment/)\n", |
47 | 58 | "\n",
|
48 | 59 | "## Test your install\n",
|
49 | 60 | "From the Jupyter Notebook dashboard, create a new Python 3 notebook and type these lines of code:\n",
|
|
0 commit comments