# Nupic install: python include files?

**URL:** <https://discourse.numenta.org/t/nupic-install-python-include-files/2505>\
**Category:** NuPIC\
**Tags:** installation, nupic\
**Created:** [July 7, 2017, 4:20pm UTC](https://discourse.numenta.org/t/nupic-install-python-include-files/2505 "2017-07-07T16:20:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsprenkle](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jsprenkle](https://discourse.numenta.org/u/jsprenkle)\
**Post date:** [July 7, 2017, 4:20pm UTC](https://discourse.numenta.org/t/nupic-install-python-include-files/2505/1 "2017-07-07T16:20:21Z")

</div>

Good morning,

Install attempt number two. Now trying with a 64 bit installation.

Here’s the error I get while trying to do the nupic install

```auto
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Isrc -I/usr/include/python2.7 -c _proj.c -o build/temp.linux-x86_64-2.7/_proj.o
  _ **proj.c:4:20: fatal error: Python.h: No such file or directory**
 **compilation terminated.**
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

```

Looks like I’m missing the python/C++ compatibility library/code.

```auto
OS: Linux Mint 18.1
Python 2.7.12
pip 9.0.1
setuptools 36.0.0
wheel 0.29.0

```

gcc was installed but not dev environment so I installed it using

```
sudo aptitude install libc-dev g++ build-essential.

```

Does anyone know how to install the python compatibility layer?

Thanks!  
Jay

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [July 7, 2017, 4:53pm UTC](https://discourse.numenta.org/t/nupic-install-python-include-files/2505/2 "2017-07-07T16:53:01Z")

</div>

You need to install python development headers.

---

<div class="post-metadata">

**Author:** ![jsprenkle](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jsprenkle](https://discourse.numenta.org/u/jsprenkle)\
**Post date:** [July 7, 2017, 5:25pm UTC](https://discourse.numenta.org/t/nupic-install-python-include-files/2505/3 "2017-07-07T17:25:15Z")

</div>

Do you by any chance know how to install them or what the python compatibility library is called? I’m not even sure what to google for

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [July 7, 2017, 5:44pm UTC](https://discourse.numenta.org/t/nupic-install-python-include-files/2505/4 "2017-07-07T17:44:59Z")

</div>

I think this is what you are a looking for. On ubuntu the command is `apt-get python-dev`.

[https://community.linuxmint.com/software/view/python-dev](https://community.linuxmint.com/software/view/python-dev)

---

<div class="post-metadata">

**Author:** ![jsprenkle](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jsprenkle](https://discourse.numenta.org/u/jsprenkle)\
**Post date:** [July 7, 2017, 6:04pm UTC](https://discourse.numenta.org/t/nupic-install-python-include-files/2505/5 "2017-07-07T18:04:47Z")

</div>

Woot!

sudo apt-get install python-dev

worked. Thanks for the help.

---

<div class="post-metadata">

**Author:** ![jsprenkle](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@jsprenkle](https://discourse.numenta.org/u/jsprenkle)\
**Post date:** [July 7, 2017, 6:08pm UTC](https://discourse.numenta.org/t/nupic-install-python-include-files/2505/6 "2017-07-07T18:08:26Z")

</div>

Since everything on the vm I created is open source I could put the VM files up for public download. It might make a quick and easy way for people to get started playing with nupic.

---

<div class="post-metadata">

**Author:** ![rhyolight](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/rhyolight/32/3922_2.png) [@rhyolight](https://discourse.numenta.org/u/rhyolight)\
**Post date:** [July 7, 2017, 6:15pm UTC](https://discourse.numenta.org/t/nupic-install-python-include-files/2505/7 "2017-07-07T18:15:05Z")

</div>

Go for it. Others have done the same in the past. 😃

---

<div class="post-metadata">

**Author:** ![ronaldgevern](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@ronaldgevern](https://discourse.numenta.org/u/ronaldgevern)\
**Post date:** [October 7, 2020, 1:22pm UTC](https://discourse.numenta.org/t/nupic-install-python-include-files/2505/8 "2020-10-07T13:22:53Z")

</div>

> [@jsprenkle](#):
>
> sudo apt-get install python-dev

Most of the time these are dependency-issues. When encountering this error please note before the error it may say you are missing a package or header file — you should find those and install them and verify if it works

For Python 2.x use:

`$ sudo apt-get install python-dev`

If you using [python](http://net-informations.com/python/iq/default.htm)3, try to replace python-dev with python3-dev

For a specific version of Python 3, replace x with the minor version in

`$ sudo apt-get install python3.x-dev`
