-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.html
More file actions
417 lines (391 loc) · 26.1 KB
/
install.html
File metadata and controls
417 lines (391 loc) · 26.1 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Installation — 3.2.0+3.gb2780d4a</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="_static/style.css" type="text/css" />
<link rel="shortcut icon" href="_static/favicon.png"/>
<link rel="canonical" href="https://podpac.org/install.html" />
<!--[if lt IE 9]>
<script src="_static/js/html5shiv.min.js"></script>
<![endif]-->
<script src="_static/jquery.js"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<script src="_static/js/theme.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="Settings" href="settings.html" />
<link rel="prev" title="Overview" href="overview.html" />
</head>
<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="index.html">
<img src="_static/icon.svg" class="logo" alt="Logo"/>
</a>
<div class="version">
3.2.0
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Getting Started</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="overview.html">Overview</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Installation</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#install-with-pip">Install with pip</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#requirements">Requirements</a></li>
<li class="toctree-l3"><a class="reference internal" href="#environment">Environment</a></li>
<li class="toctree-l3"><a class="reference internal" href="#install">Install</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#windows-pre-installation-instructions-with-anaconda">Windows Pre-Installation Instructions with Anaconda</a></li>
<li class="toctree-l4"><a class="reference internal" href="#all-operating-systems">All Operating systems</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#docker">Docker</a></li>
<li class="toctree-l2"><a class="reference internal" href="#standalone-windows-distribution">Standalone Windows Distribution</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#windows-10">Windows 10</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#install-from-source">Install from Source</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id1">Requirements</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id2">Environment</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id3">Install</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#common-issues">Common Issues</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#rasterio">Rasterio</a></li>
<li class="toctree-l3"><a class="reference internal" href="#unicodedecodeerror">UnicodeDecodeError</a></li>
<li class="toctree-l3"><a class="reference internal" href="#python-h">Python.h</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="settings.html">Settings</a></li>
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a></li>
<li class="toctree-l1"><a class="reference internal" href="aws.html">AWS Integration</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Topics</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="why-podpac.html">Why PODPAC?</a></li>
<li class="toctree-l1"><a class="reference internal" href="design.html">Design</a></li>
<li class="toctree-l1"><a class="reference internal" href="dependencies.html">Dependencies</a></li>
<li class="toctree-l1"><a class="reference internal" href="nodes.html">Nodes</a></li>
<li class="toctree-l1"><a class="reference internal" href="coordinates.html">Coordinates</a></li>
<li class="toctree-l1"><a class="reference internal" href="cache.html">Cache</a></li>
<li class="toctree-l1"><a class="reference internal" href="datasets.html">Supported Datasets</a></li>
<li class="toctree-l1"><a class="reference internal" href="interpolation.html">Interpolation</a></li>
<li class="toctree-l1"><a class="reference internal" href="earthdata.html">NASA Earth Data Login</a></li>
<li class="toctree-l1"><a class="reference internal" href="aws-development.html">AWS Development</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">References</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="api.html">API Reference</a></li>
<li class="toctree-l1"><a class="reference internal" href="wrapping-datasets.html">Wrapping Datasets</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Support</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="references.html">References</a></li>
<li class="toctree-l1"><a class="reference internal" href="contributing.html">Contributing</a></li>
<li class="toctree-l1"><a class="reference internal" href="docs.html">Documentation</a></li>
<li class="toctree-l1"><a class="reference internal" href="roadmap.html">Development Roadmap</a></li>
<li class="toctree-l1"><a class="reference internal" href="changelog.html">Changelog</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="index.html">PODPAC</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item active">Installation</li>
<li class="wy-breadcrumbs-aside">
<a href="_sources/install.md.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<section id="installation">
<h1>Installation<a class="headerlink" href="#installation" title="Permalink to this heading"></a></h1>
<p>PODPAC is available for Windows, Mac, and Linux.</p>
<p>Select the installation method the best suits your development environment:</p>
<ul class="simple">
<li><p><a class="reference internal" href="#install-with-pip"><span class="xref myst">pip</span></a>: Recommended for most users</p></li>
<li><p><a class="reference internal" href="#docker"><span class="xref myst">Docker</span></a>: For use in containers</p></li>
<li><p><a class="reference internal" href="#install-from-source"><span class="xref myst">Install from source</span></a>: For development</p></li>
<li><p><a class="reference internal" href="#standalone-windows-distribution"><span class="xref myst">Windows Standalone distribution</span></a>: Includes Python and all dependencies</p></li>
</ul>
<section id="install-with-pip">
<h2>Install with pip<a class="headerlink" href="#install-with-pip" title="Permalink to this heading"></a></h2>
<section id="requirements">
<h3>Requirements<a class="headerlink" href="#requirements" title="Permalink to this heading"></a></h3>
<p>Confirm you have the required dependencies installed on your computer:</p>
<ul class="simple">
<li><p><a class="reference external" href="https://www.python.org/">Python</a> (3.6 or later) — <a class="reference external" href="https://www.anaconda.com/distribution/#download-section">Anaconda Python Distribution</a> recommended</p></li>
<li><p>See <a class="reference internal" href="#dependencies.html#os-specific-requirements"><span class="xref myst">operating system requirements</span></a></p></li>
</ul>
</section>
<section id="environment">
<h3>Environment<a class="headerlink" href="#environment" title="Permalink to this heading"></a></h3>
<p>If using Anaconda Python (recommended for Windows), create a PODPAC dedicated Anconda environment:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span># create environment
$ conda create -n podpac python=3
# activate environment
$ conda activate podpac
</pre></div>
</div>
<p>If using a non-Anaconda Python distribution, create a PODPAC dedicated virtual environment:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span># create environment in <DIR> using virtualenv
$ python3 -m venv <DIR>
# activate environment
$ source <DIR>/bin/activate
# Create environment named `podpac` using pyenv
$ pyenv virtualenv 3.8.6 podpac
$ pyenv activate podpac
</pre></div>
</div>
</section>
<section id="install">
<h3>Install<a class="headerlink" href="#install" title="Permalink to this heading"></a></h3>
<section id="windows-pre-installation-instructions-with-anaconda">
<h4>Windows Pre-Installation Instructions with Anaconda<a class="headerlink" href="#windows-pre-installation-instructions-with-anaconda" title="Permalink to this heading"></a></h4>
<p>Some packages are simpler to install through <code class="docutils literal notranslate"><span class="pre">conda</span></code> compared to <code class="docutils literal notranslate"><span class="pre">pip</span></code> on Windows. NOTE: These
instructions tend to change based on the specific version of <code class="docutils literal notranslate"><span class="pre">conda</span></code>. Substituting which packages
are installed from <code class="docutils literal notranslate"><span class="pre">conda-forge</span></code> vs the <code class="docutils literal notranslate"><span class="pre">default</span></code> <code class="docutils literal notranslate"><span class="pre">conda</span></code> channel can usually result in a
functional installation.</p>
<p>For a full PODPAC installation pre-install the
following packages in a clean <code class="docutils literal notranslate"><span class="pre">conda</span></code> environment:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># Install core dependencies</span>
> conda install matplotlib><span class="o">=</span><span class="m">2</span>.1 numpy><span class="o">=</span><span class="m">1</span>.14 scipy><span class="o">=</span><span class="m">1</span>.0 traitlets><span class="o">=</span><span class="m">4</span>.3 xarray><span class="o">=</span><span class="m">0</span>.10 ipython psutil requests><span class="o">=</span><span class="m">2</span>.18 owslib beautifulsoup4><span class="o">=</span><span class="m">4</span>.6 h5py><span class="o">=</span><span class="m">2</span>.9 lxml><span class="o">=</span><span class="m">4</span>.2 zarr><span class="o">=</span><span class="m">2</span>.3 intake><span class="o">=</span><span class="m">0</span>.5 boto3><span class="o">=</span><span class="m">1</span>.4 s3fs><span class="o">=</span><span class="m">0</span>.2 numexpr><span class="o">=</span><span class="m">2</span>.6 jupyterlab ipywidgets nodejs
> conda install pyproj><span class="o">=</span><span class="m">2</span>.2 rasterio><span class="o">=</span><span class="m">1</span>.0 ipympl ipyleaflet -c conda-forge
<span class="c1"># Set up jupyter lab extensions</span>
> jupyter labextension install @jupyter-widgets/jupyterlab-manager
> jupyter labextension install jupyter-leaflet
> jupyter labextension install jupyter-matplotlib
> jupyter nbextension <span class="nb">enable</span> --py widgetsnbextension
> jupyter lab build
<span class="c1"># clean conda environment (optional)</span>
> conda clean -a -y
</pre></div>
</div>
</section>
<section id="all-operating-systems">
<h4>All Operating systems<a class="headerlink" href="#all-operating-systems" title="Permalink to this heading"></a></h4>
<p>After activating the environment, install using <code class="docutils literal notranslate"><span class="pre">pip</span></code> with one of the following commands:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ pip install podpac # base installation
$ pip install podpac[datatype] # install podpac and optional data handling dependencies
$ pip install podpac[notebook] # install podpac and optional notebook dependencies
$ pip install podpac[aws] # install podpac and optional aws dependencies
$ pip install podpac[algorithm] # install podpac and optional algorithm dependencies
$ pip install podpac[all] # install podpac and all optional dependencies
</pre></div>
</div>
<p>See <a class="reference internal" href="#dependencies.html#optional-dependencies"><span class="xref myst">Optional Dependencies</span></a> more information on optional PODPAC dependencies.</p>
</section>
</section>
</section>
<section id="docker">
<h2>Docker<a class="headerlink" href="#docker" title="Permalink to this heading"></a></h2>
<p>This guide assumes you have a working installation of Docker on your computer or server.</p>
<ul class="simple">
<li><p><a class="reference external" href="https://docs.docker.com/install/linux/docker-ce/debian/">Install for Linux</a></p></li>
<li><p><a class="reference external" href="https://docs.docker.com/docker-for-mac/install/">Install for Mac</a></p></li>
<li><p><a class="reference external" href="https://docs.docker.com/docker-for-windows/install/">Install for Windows</a></p></li>
</ul>
<p>Once you have Docker installed, the following steps will allow you to run PODPAC within an interactive Docker shell:</p>
<ul class="simple">
<li><p>Download the <a class="reference external" href="https://github.com/creare-com/podpac/blob/master/Dockerfile">PODPAC Dockerfile</a> from the repository</p></li>
<li><p>From the directory where you downloaded the <code class="docutils literal notranslate"><span class="pre">Dockerfile</span></code>, run:</p></li>
</ul>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span># build the docker image with the tag `podpac`
$ docker build -t podpac .
</pre></div>
</div>
<ul class="simple">
<li><p>Run the built image</p></li>
</ul>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span># run the docker image in an interactive shell
$ docker run -i -t podpac
</pre></div>
</div>
</section>
<section id="standalone-windows-distribution">
<h2>Standalone Windows Distribution<a class="headerlink" href="#standalone-windows-distribution" title="Permalink to this heading"></a></h2>
<section id="windows-10">
<h3>Windows 10<a class="headerlink" href="#windows-10" title="Permalink to this heading"></a></h3>
<p>The Window 10 standalone distribution requires no pre-installed operating system or external dependencies.</p>
<ul class="simple">
<li><p>Download the latest Window 10 standalone distribution</p>
<ul>
<li><p><a class="reference external" href="https://s3.amazonaws.com/podpac-s3/releases/PODPAC_latest_install_windows10.zip">https://s3.amazonaws.com/podpac-s3/releases/PODPAC_latest_install_windows10.zip</a></p>
<ul>
<li><p>For older versions, substitute <code class="docutils literal notranslate"><span class="pre">latest</span></code> in the url with the version number, i.e. <code class="docutils literal notranslate"><span class="pre">PODPAC_1.2.0_install_windows10.zip</span></code></p></li>
</ul>
</li>
</ul>
</li>
<li><p>Once downloaded, extract the zip file into a folder on your machine.</p>
<ul>
<li><p>We recommend expanding it near the root of your drive (e.g. <code class="docutils literal notranslate"><span class="pre">C:\PODPAC</span></code>) due to long file paths that are part of the installation.</p></li>
</ul>
</li>
</ul>
<p>Once the folder is unzipped:</p>
<ul class="simple">
<li><p>To run an IPython session:</p>
<ul>
<li><p>Open a Windows command prompt in this directory</p></li>
<li><p>Run the <code class="docutils literal notranslate"><span class="pre">run_ipython.bat</span></code> script</p></li>
</ul>
</li>
<li><p>To open the example <a class="reference external" href="https://jupyter.org/">Jupyter notebooks</a>:</p>
<ul>
<li><p>Double click the file <code class="docutils literal notranslate"><span class="pre">run_podpac_jupyterlab.bat</span></code></p></li>
<li><p>This will open up a Windows command prompt, and launch a JupyterLab notebook in your default web browser</p></li>
<li><p>To close the notebook, close the browser tab, and close the Windows console</p></li>
</ul>
</li>
</ul>
<p>To make this standalone distribution, see the <a class="reference internal" href="deploy-notes.html"><span class="std std-doc">deploy notes</span></a>.</p>
</section>
</section>
<section id="install-from-source">
<h2>Install from Source<a class="headerlink" href="#install-from-source" title="Permalink to this heading"></a></h2>
<section id="id1">
<h3>Requirements<a class="headerlink" href="#id1" title="Permalink to this heading"></a></h3>
<p>Confirm you have the required dependencies installed on your computer:</p>
<ul class="simple">
<li><p><a class="reference external" href="https://git-scm.com/">git</a></p></li>
<li><p><a class="reference external" href="https://www.python.org/">Python</a> (3.6 or later)</p>
<ul>
<li><p>We recommend the <a class="reference external" href="https://www.anaconda.com/distribution/#download-section">Anaconda Python Distribution</a></p></li>
</ul>
</li>
<li><p>See <a class="reference internal" href="#dependencies.html#os-specific-requirements#os-specific-requirements"><span class="xref myst">operating system requirements</span></a></p></li>
</ul>
</section>
<section id="id2">
<h3>Environment<a class="headerlink" href="#id2" title="Permalink to this heading"></a></h3>
<p>If using Anaconda Python, create a PODPAC dedicated Anconda environment:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span># create environment with all `anaconda` packages
$ conda create -n podpac python=3 anaconda
# activate environment
$ conda activate podpac
</pre></div>
</div>
<p>If using a non-Anaconda Python distribution, create a PODPAC dedicated virtual environment:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span># create environment in <DIR>
$ python3 -m venv <DIR>
# activate environment
$ source <DIR>/bin/activate
</pre></div>
</div>
</section>
<section id="id3">
<h3>Install<a class="headerlink" href="#id3" title="Permalink to this heading"></a></h3>
<p>After activating the virtual environment, clone the <a class="reference external" href="https://github.com/creare-com/podpac">podpac repository</a> onto your machine:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ cd <install-path>
$ git clone https://github.com/creare-com/podpac.git
$ cd podpac
</pre></div>
</div>
<p>By default, PODPAC clones to the <code class="docutils literal notranslate"><span class="pre">master</span></code> branch, which is the latest stable release.</p>
<p>To use a previous release, checkout the <code class="docutils literal notranslate"><span class="pre">tags/<version></span></code> reference.
For bleeding edge, checkout the <code class="docutils literal notranslate"><span class="pre">develop</span></code> branch.</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ git fetch origin # fetch all remote branches
$ git checkout -b release/<version> tags/<version> # checkout specific release
$ git checkout -b develop origin/develop # latest stable version
</pre></div>
</div>
<p>From the root of the git repository, install using <code class="docutils literal notranslate"><span class="pre">pip</span></code> with one of the following commands:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ pip install -e . # base installation
$ pip install -e .[datatype] # install podpac and optional data handling dependencies
$ pip install -e .[notebook] # install podpac and optional notebook dependencies
$ pip install -e .[aws] # install podpac and optional aws dependencies
$ pip install -e .[algorithm] # install podpac and optional algorithm dependencies
$ pip install -e .[all] # install podpac and all optional dependencies
</pre></div>
</div>
<p>See <a class="reference internal" href="#dependencies.html#optional-dependencies"><span class="xref myst">Optional Dependencies</span></a> more information on optional PODPAC dependencies.</p>
<p>To install PODPAC and keep installation up to date with local changes, use the option <code class="docutils literal notranslate"><span class="pre">-e</span></code> when installing:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ pip install -e . # install podpac with only core dependencies
$ pip install -e .[devall] # install podpac and all optional dependencies
</pre></div>
</div>
</section>
</section>
<section id="common-issues">
<h2>Common Issues<a class="headerlink" href="#common-issues" title="Permalink to this heading"></a></h2>
<section id="rasterio">
<h3>Rasterio<a class="headerlink" href="#rasterio" title="Permalink to this heading"></a></h3>
<p>Some users may experience issues installing <a class="reference external" href="https://rasterio.readthedocs.io/en/latest/installation.html">rasterio</a> (included in the <code class="docutils literal notranslate"><span class="pre">datatype</span></code> and <code class="docutils literal notranslate"><span class="pre">all</span></code> installations).
If you encounter issues, we recommend trying to install <a class="reference external" href="https://rasterio.readthedocs.io/en/latest/installation.html">rasterio</a> into your active Python environment, then re-installing <code class="docutils literal notranslate"><span class="pre">podpac</span></code>.</p>
</section>
<section id="unicodedecodeerror">
<h3>UnicodeDecodeError<a class="headerlink" href="#unicodedecodeerror" title="Permalink to this heading"></a></h3>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="ne">UnicodeDecodeError</span><span class="p">:</span> <span class="s1">'ascii'</span> <span class="n">codec</span> <span class="n">can</span><span class="s1">'t decode byte 0xe2 in position 13: ordinal not in range(128)*</span>
</pre></div>
</div>
<p>Some linux users may encounter this when using Ubuntu and Python 3.6.
See this <a class="reference external" href="https://stackoverflow.com/a/49127686">stack overflow answer</a> for a solution.</p>
</section>
<section id="python-h">
<h3>Python.h<a class="headerlink" href="#python-h" title="Permalink to this heading"></a></h3>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">psutil</span><span class="o">/</span><span class="n">_psutil_common</span><span class="o">.</span><span class="n">c</span><span class="p">:</span><span class="mi">9</span><span class="p">:</span><span class="mi">10</span><span class="p">:</span> <span class="n">fatal</span> <span class="n">error</span><span class="p">:</span> <span class="n">Python</span><span class="o">.</span><span class="n">h</span><span class="p">:</span> <span class="n">No</span> <span class="n">such</span> <span class="n">file</span> <span class="ow">or</span> <span class="n">directory</span>
<span class="c1">#include <Python.h></span>
<span class="o">^~~~~~~~~~</span>
<span class="n">compilation</span> <span class="n">terminated</span><span class="o">.</span>
<span class="n">error</span><span class="p">:</span> <span class="n">command</span> <span class="s1">'x86_64-linux-gnu-gcc'</span> <span class="n">failed</span> <span class="k">with</span> <span class="n">exit</span> <span class="n">status</span> <span class="mi">1</span>
</pre></div>
</div>
<p>You are missing the <code class="docutils literal notranslate"><span class="pre">python-dev</span></code> header and static files.
See this <a class="reference external" href="https://stackoverflow.com/a/21530768">stack overflow answer</a> for the appropriate solution.</p>
</section>
</section>
</section>
</div>
</div>
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
<a href="overview.html" class="btn btn-neutral float-left" title="Overview" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
<a href="settings.html" class="btn btn-neutral float-right" title="Settings" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
</div>
<hr/>
<div role="contentinfo">
<p>© Copyright 2017-2023, Creare.</p>
</div>
Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>
</body>
</html>