-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathanaconda_esri.html
66 lines (49 loc) · 2.75 KB
/
anaconda_esri.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Installing Continuum's Anaconda</title>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<h1>Using ArcGIS arcpy with Anaconda Python</h1>
<img src="figures/arcpy_icon.png" style="float: right; width: 30%; margin-right: 1%; margin-bottom: 0.5em;">
When you install ArcGIS, you also get a version of Python, a limited set
of open source packages and ESRI's python tools, called <tt>arcpy</tt>.
This is a very basic setup. Anaconda Python will be
<a href="https://finance.yahoo.com/news/esri-selects-anaconda-enhance-gis-140100709.html">cooked into
ArcGIS at some point</a>, but until that time you can use
<tt>arcpy</tt> outside the ESRI environment.
Regular ArcGIS installed on most machines requires 32 bit python (current
as of ArcGIS 10.4), and we will follow that assumption in what follows.
There are some flavors of ESRI products <a href="
http://desktop.arcgis.com/en/arcmap/latest/analyze/executing-tools/64bit-background.htm">compatible
with 64 bit python</a> (also <a href="https://blogs.esri.com/esri/supportcenter/2013/07/29/64-bit-vs-32-bit-python-explained/">see this</a>).
<ul>
<li>Follow the Anaconda steps above, except download and install
32-bit version of Python 2.7 (or 64 bit if you have a special
version of Arc).</li>
<li>Copy <tt>Desktop10.4.pth</tt> which can be found in <tt>C:\Python27\ArcGIS10.4\Lib\site-packages\</tt> to
the <tt>C:\your_user_name\Anaconda2\Lib\site-packages</tt>
directory.
<li>Note: The first time <tt>import arcpy</tt> is called, it will be slow.</li>
<li>The above steps are sufficient to use arcpy outside of ArcGIS. <a
href="https://gisday.wordpress.com/2016/07/18/setting-up-anaconda-pysal-with-arcgis-python-environment/">This
website</a> has a far more detailed approach that uses
Anaconda environments. They also offer an approach to access all
the Anaconda packages from within ArcGIS, but I was not successful
in doing this.</li>
</ul>
<p>
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</div>
<script src="javascripts/scale.fix.js"></script>
</body>
</html>