# HTM Python Version Installation Problem

**URL:** <https://discourse.numenta.org/t/htm-python-version-installation-problem/1523>\
**Category:** NuPIC\
**Created:** [October 20, 2016, 3:39am UTC](https://discourse.numenta.org/t/htm-python-version-installation-problem/1523 "2016-10-20T03:39:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![HTM\_HAHA](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@HTM\_HAHA](https://discourse.numenta.org/u/HTM_HAHA)\
**Post date:** [October 20, 2016, 3:39am UTC](https://discourse.numenta.org/t/htm-python-version-installation-problem/1523/1 "2016-10-20T03:39:32Z")

</div>

Hi,guys.I need some help.When I was using Ubuntu14.04 to install nupic,there are some problems.I used pip install nupic for installation just as the readme.md told me,but the error message shows that a compiler with support for c++11 is required.But I already have gcc which the version is 5.4.1.According to the error message ,I can’t install pycapnp because of the compiler thing.Can you tell me how to solve the problem?

---

<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:** [October 20, 2016, 1:59pm UTC](https://discourse.numenta.org/t/htm-python-version-installation-problem/1523/2 "2016-10-20T13:59:33Z")

</div>

We very recently updated NuPIC so you should be able to simply run `pip install nupic` from the command line to install on Ubuntu. Try uninstalling anything you already have by running `pip uninstall nupic -y` and `pip uninstall nupic.bindings -y` a few times, then try again with the simple `pip install nupic` command.

---

<div class="post-metadata">

**Author:** ![HTM\_HAHA](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@HTM\_HAHA](https://discourse.numenta.org/u/HTM_HAHA)\
**Post date:** [October 20, 2016, 3:16pm UTC](https://discourse.numenta.org/t/htm-python-version-installation-problem/1523/3 "2016-10-20T15:16:28Z")

</div>

That’s odd.I’ve tried the simple command pip install nupic. But it didn’t work. There were some problems installing the pycapnp module.That is the biggest problem.Now I turn my gcc version into 4.8.4. The Internet shows that this version can support c++11,but the error message still shows “a compiler with support for c++11 is required”. What else should I do before using the command pip install nupic? Thank you very much.

---

<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:** [October 20, 2016, 3:53pm UTC](https://discourse.numenta.org/t/htm-python-version-installation-problem/1523/4 "2016-10-20T15:53:07Z")

</div>

Thanks for reporting. I can see that pycapnp might be a problem because it requires installation of the Capnproto C++ library.

You might have more than one `gcc` compiler installed, and the pycapnp build is picking up the wrong one. Try setting the following environment variables:

```bash
export CC=gcc
export CXX=g++

```

Also, confirm that `gxx --version` returns the version you expect.

---

<div class="post-metadata">

**Author:** ![HTM\_HAHA](https://avatars.discourse-cdn.com/v4/letter/h/5f9b8f/32.png) [@HTM\_HAHA](https://discourse.numenta.org/u/HTM_HAHA)\
**Post date:** [October 20, 2016, 4:02pm UTC](https://discourse.numenta.org/t/htm-python-version-installation-problem/1523/5 "2016-10-20T16:02:12Z")

</div>

Yes,that’s what I need.Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Austin\_Marshall](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/austin_marshall/32/1029_2.png) [@Austin\_Marshall](https://discourse.numenta.org/u/Austin_Marshall)\
**Post date:** [October 25, 2016, 6:43pm UTC](https://discourse.numenta.org/t/htm-python-version-installation-problem/1523/6 "2016-10-25T18:43:28Z")

</div>

We run nupic in ubuntu 14.04. You might find the build scripts at [https://github.com/numenta/nupic/tree/master/ci/bamboo](https://github.com/numenta/nupic/tree/master/ci/bamboo) informative as they include ubuntu-specific instructions.
