I'm running ArcPro 2.8 and trying to install arcpy into a separate conda distribution (that is, a conda distribution not associated with Arc) using the command:
conda install arcpy -c esri
If I understand correctly, this should be possible with ArcPro >2.7. I get the error: ERROR conda.core.link:_execute(698): An error occurred while installing package 'esri::arcgis-1.9.0-py37_2172' and and
"TypeError: expected string or bytes-like object
==> 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: 1"
Some considerations:
I need a separate conda installation because most of my Python work is done outside of the Arc software. I need the flexibility to update conda/packages as needed and have a variety of envs.
But I'd also like to use arcpy... whether that is 1) in an environment associated with my separate conda installation or 2) with the Arc-distributed conda installation. I cannot get either option to work. For option 2, I cannot clone the arcgispro-py3 environment or activate it from my cmd (I think because my PATHS are all associated with my separate conda distribution).
Am I missing something obvious? Are others running a separate conda installation *and* leveraging arcpy in an environment?