|
17 | 17 | },
|
18 | 18 | {
|
19 | 19 | "cell_type": "markdown",
|
20 |
| - "metadata": {}, |
| 20 | + "metadata": { |
| 21 | + "toc": true |
| 22 | + }, |
21 | 23 | "source": [
|
22 |
| - "- [Install the arcgis package](#Install-the-arcgis-package)\n", |
23 |
| - " - [Installation for ArcGIS Pro 2.5.x and later](#Installation-for-ArcGIS-Pro-2.5.x-and-later)\n", |
24 |
| - " - [Installation using Python Package Manager](#Installation-using-Python-Package-Manager)\n", |
25 |
| - " - [Installation using Python Command Prompt](#Installation-using-Python-Command-Prompt)\n", |
26 |
| - " - [Upgrade package](#Upgrade-package)\n", |
27 |
| - " - [Installation using Anaconda for Python Distribution](#Installation-using-Anaconda-for-Python-Distribution)\n", |
28 |
| - " - [Installation as a Docker image](#Installation-as-a-Docker-image)\n", |
29 |
| - " - [Install Offline](#Install-Offline)\n", |
30 |
| - " - [Installation for older versions](#Installation-for-older-versions)\n", |
31 |
| - "- [Install deep learning dependencies](#Install-deep-learning-dependencies) \n", |
32 |
| - " - [Using the Deep Learning Frameworks Installer](#Using-the-Deep-Learning-Frameworks-Installer)\n", |
33 |
| - " - [Using Python Command Prompt or Anaconda](#Using-Python-Command-Prompt-or-Anaconda)\n", |
34 |
| - "- [Test your install with jupyter notebook](#Test-your-install-with-jupyter-notebook)" |
| 24 | + "<h1>Table of Contents<span class=\"tocSkip\"></span></h1>\n", |
| 25 | + "<div class=\"toc\"><ul class=\"toc-item\"><li><span><a href=\"#Installation-for-ArcGIS-Pro-2.5.x-and-later\" data-toc-modified-id=\"Installation-for-ArcGIS-Pro-2.5.x-and-later-1\">Installation for ArcGIS Pro 2.5.x and later</a></span><ul class=\"toc-item\"><li><span><a href=\"#Installation-using-Python-Package-Manager\" data-toc-modified-id=\"Installation-using-Python-Package-Manager-1.1\">Installation using Python Package Manager</a></span></li><li><span><a href=\"#Installation-using-Python-Command-Prompt\" data-toc-modified-id=\"Installation-using-Python-Command-Prompt-1.2\">Installation using Python Command Prompt</a></span></li><li><span><a href=\"#Upgrade-package\" data-toc-modified-id=\"Upgrade-package-1.3\">Upgrade package</a></span></li></ul></li><li><span><a href=\"#Installation-using-Anaconda-for-Python-Distribution\" data-toc-modified-id=\"Installation-using-Anaconda-for-Python-Distribution-2\">Installation using Anaconda for Python Distribution</a></span><ul class=\"toc-item\"><li><ul class=\"toc-item\"><li><span><a href=\"#conda\" data-toc-modified-id=\"conda-2.0.1\">conda</a></span></li><li><span><a href=\"#Pipenv\" data-toc-modified-id=\"Pipenv-2.0.2\">Pipenv</a></span></li></ul></li></ul></li><li><span><a href=\"#Install-with-minimum-dependencies\" data-toc-modified-id=\"Install-with-minimum-dependencies-3\">Install with minimum dependencies</a></span></li><li><span><a href=\"#Installation-as-a-Docker-image\" data-toc-modified-id=\"Installation-as-a-Docker-image-4\">Installation as a Docker image</a></span></li><li><span><a href=\"#Install-Offline\" data-toc-modified-id=\"Install-Offline-5\">Install Offline</a></span><ul class=\"toc-item\"><li><ul class=\"toc-item\"><li><ul class=\"toc-item\"><li><span><a href=\"#1.-While-in-a-connected-environment,-download-the-appropriate-software-you'll-need:\" data-toc-modified-id=\"1.-While-in-a-connected-environment,-download-the-appropriate-software-you'll-need:-5.0.0.1\">1. While in a connected environment, download the appropriate software you'll need:</a></span></li><li><span><a href=\"#2.-Configure-Anaconda-for-use-in-the-disconnected-enviroment:\" data-toc-modified-id=\"2.-Configure-Anaconda-for-use-in-the-disconnected-enviroment:-5.0.0.2\">2. Configure Anaconda for use in the disconnected enviroment:</a></span></li><li><span><a href=\"#3.-Verify-the-install:\" data-toc-modified-id=\"3.-Verify-the-install:-5.0.0.3\">3. Verify the install:</a></span></li></ul></li></ul></li><li><span><a href=\"#Installation-for-older-versions\" data-toc-modified-id=\"Installation-for-older-versions-5.1\">Installation for older versions</a></span></li><li><span><a href=\"#Using-the-Deep-Learning-Frameworks-Installer\" data-toc-modified-id=\"Using-the-Deep-Learning-Frameworks-Installer-5.2\">Using the Deep Learning Frameworks Installer</a></span></li><li><span><a href=\"#Install-using-Python-Command-Prompt-or-Anaconda\" data-toc-modified-id=\"Install-using-Python-Command-Prompt-or-Anaconda-5.3\">Install using Python Command Prompt or Anaconda</a></span></li></ul></li><li><span><a href=\"#Test-your-install-with-jupyter-notebook\" data-toc-modified-id=\"Test-your-install-with-jupyter-notebook-6\">Test your install with jupyter notebook</a></span></li></ul></div>" |
35 | 26 | ]
|
36 | 27 | },
|
37 | 28 | {
|
|
231 | 222 | "``pipenv install arcgis``"
|
232 | 223 | ]
|
233 | 224 | },
|
| 225 | + { |
| 226 | + "cell_type": "markdown", |
| 227 | + "metadata": {}, |
| 228 | + "source": [ |
| 229 | + "## Install with minimum dependencies\n", |
| 230 | + "\n", |
| 231 | + "Both `conda install -c esri arcgis` and `pip install arcgis` will install all of the dependencies outlined in the [system requirements](https://developers.arcgis.com/python/guide/system-requirements/) section. However, the API can function in a 'stripped down' state with only a few dependencies. This allows developers to deploy the API with minimal footprint in space constrained environments. For this to work, you need to manually manage the dependencies in your environment based on the applications you need to solve and if you don't want to use every feature of the API. As of `v1.8.3` of the Python API, the minimum dependencies needed are:\n", |
| 232 | + "\n", |
| 233 | + " - `ujson`\n", |
| 234 | + " - `six`\n", |
| 235 | + " - `requests`\n", |
| 236 | + " - This library has its own dependencies that must be included\n", |
| 237 | + " - `requests_toolbelt`\n", |
| 238 | + " - `requests_ntlm`\n", |
| 239 | + " - This library has its own dependencies that must be included\n", |
| 240 | + " - `ntlm_auth`\n", |
| 241 | + "\n", |
| 242 | + "To install the API with no dependencies, simply add the `--no-deps` flag to any install command, i.e. `conda install -c esri arcgis --no-deps` or `pip install arcgis --no-deps`. \n", |
| 243 | + "\n", |
| 244 | + "The above set of dependencies should allow you to establish a connection with your web GIS and perform a number of administrative and other tasks which involve processing on your GIS rather than in your Python kernel. Depending on your OS, this set up with minimal dependencies should take up about `50` mb in space. As your needs expand, you can then manually choose which dependencies to add to your Python environment. For instance, you can install `pandas` if you require to work with spatially enabled DataFrames and `jupyter` if you need the notebook IDE." |
| 245 | + ] |
| 246 | + }, |
234 | 247 | {
|
235 | 248 | "cell_type": "markdown",
|
236 | 249 | "metadata": {
|
|
347 | 360 | "cell_type": "markdown",
|
348 | 361 | "metadata": {},
|
349 | 362 | "source": [
|
350 |
| - "You can click [here](#https://developers.arcgis.com/python/guide/install-and-set-up/) to install argis for older versions." |
| 363 | + "You can click [here](https://developers.arcgis.com/python/guide/install-older-versions/) to install `arcgis` for older versions." |
351 | 364 | ]
|
352 | 365 | },
|
353 | 366 | {
|
354 | 367 | "cell_type": "markdown",
|
355 |
| - "metadata": {}, |
| 368 | + "metadata": { |
| 369 | + "heading_collapsed": true |
| 370 | + }, |
356 | 371 | "source": [
|
357 | 372 | "# Install deep learning dependencies"
|
358 | 373 | ]
|
359 | 374 | },
|
360 | 375 | {
|
361 | 376 | "cell_type": "markdown",
|
362 |
| - "metadata": {}, |
| 377 | + "metadata": { |
| 378 | + "hidden": true |
| 379 | + }, |
363 | 380 | "source": [
|
364 | 381 | "If you already have an environment with the `arcgis` package installed, you can further install its deep learning dependencies to take advantage of the `arcgis.learn` module. Some of the deep learning samples available [here](https://developers.arcgis.com/python/sample-notebooks/) can be referenced to understand the workflow.\n",
|
365 | 382 | "\n",
|
|
374 | 391 | },
|
375 | 392 | {
|
376 | 393 | "cell_type": "markdown",
|
377 |
| - "metadata": {}, |
| 394 | + "metadata": { |
| 395 | + "hidden": true |
| 396 | + }, |
378 | 397 | "source": [
|
379 | 398 | "### Install using Python Command Prompt or Anaconda"
|
380 | 399 | ]
|
381 | 400 | },
|
382 | 401 | {
|
383 | 402 | "cell_type": "markdown",
|
384 |
| - "metadata": {}, |
| 403 | + "metadata": { |
| 404 | + "hidden": true |
| 405 | + }, |
385 | 406 | "source": [
|
386 | 407 | "To install deep learning packages in ArcGIS Pro, first ensure that ArcGIS Pro is installed.\n",
|
387 | 408 | "Using the steps below, you will create a new Python deep learning environment by cloning the default Python environment\n",
|
|
390 | 411 | },
|
391 | 412 | {
|
392 | 413 | "cell_type": "markdown",
|
393 |
| - "metadata": {}, |
| 414 | + "metadata": { |
| 415 | + "hidden": true |
| 416 | + }, |
394 | 417 | "source": [
|
395 | 418 | "For opening Python Command Prompt navigate to \n",
|
396 | 419 | "**Start** Menu > **All Programs** > **ArcGIS** > **Python Command Prompt**\n",
|
|
410 | 433 | },
|
411 | 434 | {
|
412 | 435 | "cell_type": "markdown",
|
413 |
| - "metadata": {}, |
| 436 | + "metadata": { |
| 437 | + "hidden": true |
| 438 | + }, |
414 | 439 | "source": [
|
415 | 440 | "- For TensorFlow support (optional), use the following command:\n",
|
416 | 441 | "\n",
|
|
419 | 444 | },
|
420 | 445 | {
|
421 | 446 | "cell_type": "markdown",
|
422 |
| - "metadata": {}, |
| 447 | + "metadata": { |
| 448 | + "hidden": true |
| 449 | + }, |
423 | 450 | "source": [
|
424 | 451 | "- For Multispectral data support (optional and needed only for Anaconda users)\n",
|
425 | 452 | "\n",
|
|
428 | 455 | },
|
429 | 456 | {
|
430 | 457 | "cell_type": "markdown",
|
431 |
| - "metadata": {}, |
| 458 | + "metadata": { |
| 459 | + "hidden": true |
| 460 | + }, |
432 | 461 | "source": [
|
433 | 462 | "## Test your install with jupyter notebook"
|
434 | 463 | ]
|
435 | 464 | },
|
436 | 465 | {
|
437 | 466 | "cell_type": "markdown",
|
438 |
| - "metadata": {}, |
| 467 | + "metadata": { |
| 468 | + "hidden": true |
| 469 | + }, |
439 | 470 | "source": [
|
440 | 471 | "To verify your arcgis installation, run the following commands in jupyter notebook:"
|
441 | 472 | ]
|
442 | 473 | },
|
443 | 474 | {
|
444 | 475 | "cell_type": "code",
|
445 | 476 | "execution_count": 1,
|
446 |
| - "metadata": {}, |
| 477 | + "metadata": { |
| 478 | + "hidden": true |
| 479 | + }, |
447 | 480 | "outputs": [
|
448 | 481 | {
|
449 | 482 | "data": {
|
|
468 | 501 | },
|
469 | 502 | {
|
470 | 503 | "cell_type": "markdown",
|
471 |
| - "metadata": {}, |
| 504 | + "metadata": { |
| 505 | + "hidden": true |
| 506 | + }, |
472 | 507 | "source": [
|
473 | 508 | "To verify deep learning environment, run the following commands:"
|
474 | 509 | ]
|
475 | 510 | },
|
476 | 511 | {
|
477 | 512 | "cell_type": "markdown",
|
478 |
| - "metadata": {}, |
| 513 | + "metadata": { |
| 514 | + "hidden": true |
| 515 | + }, |
479 | 516 | "source": [
|
480 | 517 | "``import fastai``\n",
|
481 | 518 | "\n",
|
|
486 | 523 | },
|
487 | 524 | {
|
488 | 525 | "cell_type": "markdown",
|
489 |
| - "metadata": {}, |
| 526 | + "metadata": { |
| 527 | + "hidden": true |
| 528 | + }, |
490 | 529 | "source": [
|
491 | 530 | "Run this command to check if cuda device is picked up for training a model on GPU.\n",
|
492 | 531 | "\n",
|
|
499 | 538 | },
|
500 | 539 | {
|
501 | 540 | "cell_type": "markdown",
|
502 |
| - "metadata": {}, |
| 541 | + "metadata": { |
| 542 | + "hidden": true |
| 543 | + }, |
503 | 544 | "source": [
|
504 | 545 | "[This overview](https://developers.arcgis.com/python/guide/overview-of-the-arcgis-api-for-python/) describes how to use ArcGIS API for Python to write Python code, incorporating capabilities such as mapping, query, analysis, geocoding, routing, portal administration, and more. Browse the sample notebooks to get started. You may choose to experience these [sample notebooks](https://developers.arcgis.com/python/sample-notebooks/) in a live environment as they are available as ArcGIS Notebooks."
|
505 | 546 | ]
|
506 | 547 | },
|
507 | 548 | {
|
508 | 549 | "cell_type": "markdown",
|
509 |
| - "metadata": {}, |
| 550 | + "metadata": { |
| 551 | + "hidden": true |
| 552 | + }, |
510 | 553 | "source": [
|
511 | 554 | "\n",
|
512 | 555 | "> These are temporary environments which are erased after you close the browser tab. If you would like to save your changes, download your notebooks from the `File` menu of the Jupyter notebook IDE."
|
|
529 | 572 | "name": "python",
|
530 | 573 | "nbconvert_exporter": "python",
|
531 | 574 | "pygments_lexer": "ipython3",
|
532 |
| - "version": "3.6.12" |
| 575 | + "version": "3.8.2" |
| 576 | + }, |
| 577 | + "toc": { |
| 578 | + "base_numbering": 1, |
| 579 | + "nav_menu": {}, |
| 580 | + "number_sections": false, |
| 581 | + "sideBar": false, |
| 582 | + "skip_h1_title": true, |
| 583 | + "title_cell": "Table of Contents", |
| 584 | + "title_sidebar": "Contents", |
| 585 | + "toc_cell": true, |
| 586 | + "toc_position": {}, |
| 587 | + "toc_section_display": true, |
| 588 | + "toc_window_display": false |
533 | 589 | }
|
534 | 590 | },
|
535 | 591 | "nbformat": 4,
|
|
0 commit comments