arcgis10.4及Arcpy 环境配置
一、anaconda2安装
选择All Users
路径自己选择
选择Install …
二、Arcgis 10.4及arcpy配置
注:10.5暂不支持64位python,在配置好arcpy后继续安装gdal只能安装32位,程序需要64位的gdal,因此安装10.4较为合适
1.安装License Manager
自动弹出下面窗口,点击stop
然后将破解文件拷贝到对应的地方(bin文件夹),然后点击start和Re-readLicenses
2.安装Desktop
一直下一步开始安装。
点击“可用性”,然后 刷新,最后 确定
等待安装完毕后,将破解文件(bin文件夹中)拷贝到对应位置,然后启动Arcmap,确认安装成功
3.安装Arcgis Server
选择ArcGIS.Installation.xml文件
选择serverlic.ecp文件
4 .Arcpy配置
在环境变量path中加入arcgis和anaconda相关的路径:
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\NVIDIA GPU Computing;C:\anaconda2;C:\anaconda2\Library\mingw-w64\bin;C:\anaconda2\Library\usr\bin;C:\anaconda2\Library\bin;C:\anaconda2\Scripts;C:\Python27\ArcGIS10.4;C:\Python27\ArcGIS10.4\Scripts;C:\anaconda2\Lib\site-packages;C:\Program Files\ArcGIS\Server\arcpy;C:\Program Files\ArcGIS\Server\bin;C:\Program Files\ArcGIS\Server\ArcToolbox\Scripts;C:\Python27\ArcGIS10.4\Scripts;C:\Python27\ArcGISx6410.4\Scripts;C:\Program Files (x86)\ArcGIS\Desktop10.4\bin;C:\Program Files (x86)\ArcGIS\Desktop10.4\arcpy;C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcToolbox\Scripts;C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcToolbox;C:\Program Files (x86)\ArcGIS\Desktop10.4\bin64;
新建PYTHONPATH环境变量并加入arcgis和anaconda相关路径:
C:\anaconda2;C:\anaconda2\Lib\site-packages;C:\Program Files\ArcGIS\Server\arcpy;C:\Program Files\ArcGIS\Server\bin;C:\Program Files\ArcGIS\Server\ArcToolbox\Scripts;C:\Python27\ArcGIS10.4\Scripts;C:\Python27\ArcGISx6410.4\Scripts;C:\Program Files (x86)\ArcGIS\Desktop10.4\bin;C:\Program Files (x86)\ArcGIS\Desktop10.4\arcpy;C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcToolbox\Scripts;C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcToolbox;C:\Program Files (x86)\ArcGIS\Desktop10.4\bin64;
测试arcpy是否安装成功
三、安装gdal
https://www.lfd.uci.edu/~gohlke/pythonlibs/
下载GDAL-2.2.4-cp27-cp27m-win_amd64.whl, 安装并测试
四、安装python-opencv
https://www.lfd.uci.edu/~gohlke/pythonlibs/
下载opencv_python-3.4.0.12-cp27-cp27m-win_amd64.whl
注:如果安装过程中提示numpy相关的错误则需要在同样的地方下载安装numpy-1.14.6+mkl-cp27-cp27m-win_amd64.whl
转载自:https://blog.csdn.net/qq_20373723/article/details/86508396