![]() ![]() Start P圜harm, in File\Settings…, choose Project then Project Interpreter.type "pysal." A popup menu with a list of pysal-provided functions is a pretty good sign the installation succeeded.As a regular user, start ArcMap, open the Python window.Then copy zconda.pth to C:\Python27\ArcGIS10.4\Lib\site-packages.Create a zconda.pth (path) file with the content "C:\Anaconda\envs\arc104\lib\site-packages" in it.To: C:\Anaconda2\envs\arc104\Lib\site-packages\Desktop10.4.pth.From: C:\Python27\ArcGIS10.4\Lib\site-packages\Desktop10.4.pth.Copy the Desktop10.4.pth file to the Anaconda environment site-packages folder:.Type the following command at the Anaconda Prompt:"conda install -n arc104 python=2.7.10 numpy=1.9.2 matplotlib=1.4.3 pysal"ģ) Configure ArcGIS to see Anaconda and vice versa.Let's add the Python Spatial Analysis Library ( pysal) module.You can add more packages using conda install, but make sure you specify version numbers for these that won't change the environment's version of python or numpy (or ArcGIS will not be able to use that environment anymore).You can see the list of packages installed. At the Anaconda Command Prompt, type: activate arc104.Anaconda's conda command will then set up an environment subdirectory, ex: " C:\Anaconda2\envs\arc104 ", installing the downloaded packages into it."conda create -n arc104 python=2.7.10 numpy=1.9.2 matplotlib=1.4.3 pyparsing xlrd xlwt pandas scipy ipython ipython-notebook ipython-qtconsole".Type (depending on ArcGIS version, I am using ArcGIS 10.4 as an example here):.Get to the Anaconda Command Prompt (Start > All Programs(apps) > Anaconda2(32-bit), pick " Anaconda Prompt"), Right click, Run as Administrator.Create an Anaconda environment that is compatible with ArcGIS.> print(sys.version, numpy._version_, matplotlib._version_).Open ArcMap and its Python window, and enter these commands: Find the versions of numpy and matplotlib ArcGIS is using.Right click, run as administratorĢ) Configure an Anaconda environment for use with ArcGIS Go to Start > All Programs(apps) > Anaconda2(32-bit) > Anaconda Prompt.IMPORTANT: To avoid breaking ArcGIS (or other software), uncheck the checkboxes (a) make Anaconda the default Python and (b) add Anaconda's Python to the PATH.Install to a folder by default (C:\Anaconda2). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |