Install the third-party Python packages by running conda install.If your cloned conda environment is outside the suggested location, provide the full path to that location by using conda proswap -p "" -all-users Providing the -all-users argument is optional if you signed in to your machine as the ArcGIS Server account user otherwise, it is a required argument. To activate the cloned environment, run conda proswap -n newenvname -all-users.Alternatively, you can specify a location outside the installation directory. Replace the prefix with your installation directory and the new environment name. Run the command conda create -clone arcgispro-p圓 -prefix "\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\newenvname" -pinned -no-shortcuts using a sample newenvname. The suggested location is at the ArcGIS Server installation's Python environment directory. Clone the server's default Python environment with a new environment name.Change the directory to \ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\Scripts.Sign in to your ArcGIS Server machine and open the command prompt window as an administrator.To deploy third-party Python packages with ArcGIS Server, use the following steps for each machine in your site: Specify a Python environment for all geoprocessing services Only one Python environment at a time can be activated for ArcGIS Server.įor additional information about using and working with conda, see the introduction to conda. It is recommended that you clone the default Python environment to make updates. For more information about the Python environment in ArcGIS Pro, see Python in ArcGIS Pro. The following steps are for geoprocessing services published from ArcGIS Pro or using ArcPy. Starting at ArcGIS Server 10.8.1, you can specify a Python environment for a single geoprocessing service. Starting at ArcGIS Server 10.7.1, you can specify a Python environment for all geoprocessing services. Similar to ArcGIS Pro, ArcGIS Server uses conda to manage Python environments. However, if you want to install additional custom Python packages, follow the steps below. The Python installation of ArcGIS Server includes packages such as numpy and matplotlib. At ArcGIS Enterprise 10.5 and later, a Python 3-based conda environment is included with ArcGIS Server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |