|
20 | 20 | " - [Install Using ArcGIS Pro Python Package Manager](#Install-using-ArcGIS-Pro-Python-Package-Manager)\n",
|
21 | 21 | " - [Install Using the Python Command Prompt](#Install-using-Python-Command-Prompt)\n",
|
22 | 22 | " - [Install Using Anaconda for Python Distribution](#Install-using-Anaconda-for-Python-Distribution)\n",
|
23 |
| - " - [Install Using pip](#Install-using-pip)\n", |
| 23 | + " - [Install Using pip or pipenv](#Install-using-pipenv-or-pip)\n", |
24 | 24 | " - [Install without Dependencies](#Install-without-Dependencies)\n",
|
25 | 25 | " - [Upgrade the `arcgis` package](#Upgrade-the-arcgis-package)\n",
|
26 | 26 | " - [ArcGIS Pro 2.1](#ArcGIS-Pro-2.1)\n",
|
|
118 | 118 | "\n",
|
119 | 119 | "To use the API in different IDEs, proceed to **[Using the API](#Using-the-API)**\n",
|
120 | 120 | "\n",
|
121 |
| - "### Install using pip\n", |
| 121 | + "### Install using pipenv or pip\n", |
122 | 122 | "\n",
|
123 |
| - "[Pip](https://pip.pypa.io/en/stable/) is a package management system used to install and manage software packages written in Python, similar to conda. Many pip packages can be found in the [Python Package Index (PyPI)](https://pypi.python.org/pypi), including the ArcGIS API for Python pip package. To install the API with pip, open a terminal and enter the following command:\n", |
| 123 | + "#### Pipenv\n", |
| 124 | + "[Pipenv](https://docs.pipenv.org/) is the official packaging tool for managing environments and installing packages from the [Python Package Index (PyPI)](https://pypi.python.org/pypi). To install the ArcGIS API for Python from PyPI in a new environment, create a new folder named `your-folder`. Open a terminal, and run `cd /path/to/your-folder` to change directories into `your-folder`. Then, enter the following command to simultaneously create a new environment and install the API in it:\n", |
| 125 | + "\n", |
| 126 | + "```\n", |
| 127 | + "pipenv install arcgis\n", |
| 128 | + "```\n", |
| 129 | + "\n", |
| 130 | + "After running this command, you will notice that a new file named `Pipfile` was created in `your-folder`. A [Pipfile](https://github.com/pypa/pipfile) contains package information that represents a python environment. Open your terminal and make sure you are still in the `your-folder` directory; then, run `pipenv shell`. You have now activated your python environment, the environment that contains the `arcgis` package! You can run `jupyter notebook` or `python` in this environment to start using the API.\n", |
124 | 131 | " \n",
|
125 |
| - "```python\n", |
| 132 | + "Pipenv differs from conda and other environment managers in that environments are specific to the folder that contains the Pipfile. In this way, pipenv's use of `Pipfile` is similar to how `npm` uses `package.json`. To learn more about installing and using pipenv, click [here](https://docs.pipenv.org/) or [here](http://docs.python-guide.org/en/latest/dev/virtualenvs/#installing-packages-for-your-project).\n", |
| 133 | + "\n", |
| 134 | + "> __Tip__: You can run any command in an environment without activating it by running `pipenv run {insert_command_here}` in a directory with a valid Pipfile.\n", |
| 135 | + "\n", |
| 136 | + "#### Pip\n", |
| 137 | + "\n", |
| 138 | + "[Pip](https://pip.pypa.io/en/stable/) is the predecessor of pipenv, and can also be used to install packages from PyPI (but you must manage environments with seperate tools like [virtualenv](https://virtualenv.pypa.io/en/stable/)). To install the API with pip, open a terminal and enter the following command:\n", |
| 139 | + " \n", |
| 140 | + "```\n", |
126 | 141 | "pip install arcgis\n",
|
127 | 142 | "```\n",
|
128 | 143 | "\n",
|
129 |
| - "Pip and conda are totally seperate package managers, and should avoid being used interchangeably. It is recommended you use conda to install the API if you are a beginner user. [Read more about the differences](https://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda).\n", |
| 144 | + "#### Disclaimer\n", |
| 145 | + "You should avoid mixing conda with pipenv/pip: they are completely seperate package managers. It is recommended that you use conda to install the API if you are a beginner user. Read more about the differences [here](https://stackoverflow.com/questions/20994716/what-is-the-difference-between-pip-and-conda) and [here](http://docs.python-guide.org/en/latest/dev/virtualenvs/).\n", |
130 | 146 | "\n",
|
131 |
| - "> Note: when installing the ArcGIS API for Python with pip, some dependencies may require Microsoft Visual C++ 14.0. If you see any errors related to this, either install the Microsoft Visual C++ tools or install the API without dependencies.\n", |
| 147 | + "> __Note__: when installing the ArcGIS API for Python with pipenv/pip, some dependencies may require Microsoft Visual C++ 14.0. If you see any errors related to this, either install the Microsoft Visual C++ tools or install the API without dependencies.\n", |
132 | 148 | "\n",
|
133 | 149 | "### Install without Dependencies\n",
|
134 | 150 | "\n",
|
|
280 | 296 | "name": "python",
|
281 | 297 | "nbconvert_exporter": "python",
|
282 | 298 | "pygments_lexer": "ipython3",
|
283 |
| - "version": "3.6.1" |
| 299 | + "version": "3.6.5" |
284 | 300 | },
|
285 | 301 | "varInspector": {
|
286 | 302 | "cols": {
|
|
0 commit comments