I'm trying to install a lightweight version of ArcGIS Python API using conda and Anaconda. The documentation states that using the `--no-deps` flag will lead to a ~50MB install.
When I try this on a windows 10 machine using Anaconda the install fails with the following:
ERROR conda.core.link:_execute(732): An error occurred while installing package 'esri::arcgis-1.8.3-py38_1668'.
Rolling back transaction: done
LinkError: post-link script failed for package esri::arcgis-1.8.3-py38_1668
location of failed script: C:\Users\User\Anaconda3\envs\Arc183\Scripts\.arcgis-post-link.bat
==> script messages <==
Manually uninstall any prior version of arcgis widget using:
"jupyter nbextension uninstall arcgis --user" and
"jupyter nbextension uninstall arcgis"
'"C:\Users\User\Anaconda3\envs\Arc183\Scripts\jupyter-nbextension.exe"' is not recognized as an internal or external command,
operable program or batch file.
'"C:\Users\User\Anaconda3\envs\Arc183\Scripts\jupyter-nbextension.exe"' is not recognized as an internal or external command,
operable program or batch file.
==> script output <==
stdout: jupyter nbextension command failed: map widgets in the jupyter notebook may not work, installation continuing...
jupyter nbextension command failed: map widgets in the jupyter notebook may not work, installation continuing...
stderr:
return code: 9009
I have previously installed the recommended 6 packages and set the version of ArcGIS API to 1.8.3 as referenced in the article.
Adding jupyter_nbextensions and its dependencies inflates the total footprint of the environment up to ~750MB. This is too big for my purposes.
How can I keep this env size low?
Did you use the
conda install -c esri arcgis --no-deps
or
pip install arcgis --no-deps
I have had more success using pip install vs conda when it comes to anything involving the arcpy and/or arcgis packages since the dependency trail is hard to navigate
ADDENDUM
check to see if the documentation was indeed updates
Thanks Dan, I've been trying with Conda but will give it a shot with pip.
Oliver, I just added an addendum