Select to view content in your preferred language

How to install and use a library not included in the default arcpy environment

400
2
03-21-2024 09:45 AM
Amadeus111
Occasional Contributor II

External libraries can not be installed in to default arcpy environment anymore. We need to use some external libraries for accessing oracle, reading ms docs etc. in our scripts. 

We dont want to clone the deafult env and maintain that environment but we are looking for an option that we still use the default env and external libraries from a shared drive. Is it possible? If not what would be the best way to use external libraries with minimal maintaining effort? 

Thanks in advance

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

from your conda prompt

pip install what you need

It can break the default arcgispro-py3 environment necessitating a complete uninstall and reinstall, or it may work fine.

Proceed based on your confidence level working with environments and reinstalling software, otherwise clones are your best option


... sort of retired...
Raul
by
New Contributor III

Adding to what @DanPatterson  said, the conda prompt can be accessed from "Python Command Prompt" on the device you have ArcGIS Pro installed.

0 Kudos