Skip to content

Instantly share code, notes, and snippets.

@rhyolight
Last active February 17, 2016 23:18
Show Gist options
  • Save rhyolight/f785cb7d0a28e41ec318 to your computer and use it in GitHub Desktop.
Save rhyolight/f785cb7d0a28e41ec318 to your computer and use it in GitHub Desktop.
git clone https://github.com/numenta/nupic.core.git
cd nupic.core
sudo apt-get update -y
sudo apt-get install cmake -y
sudo apt-get install python-dev -y
# Installs latest pip (apt-get repo is way outdated)
curl https://bootstrap.pypa.io/get-pip.py | sudo python
pip install -r ../../bindings/py/requirements.txt --user
# This installs 0.5.7, which is not actually the version we want (0.5.5), but it is necessary
# to do this because the nupic.core make step requires capnp to be installed, and this will
# install it.
pip install pycapnp --user
# The actual build...
mkdir -p $NUPIC_CORE/build/scripts
cd $NUPIC_CORE/build/scripts
cmake $NUPIC_CORE -DCMAKE_INSTALL_PREFIX=../release -DPY_EXTENSIONS_DIR=$NUPIC_CORE/bindings/py/nupic/bindings
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment