Skip to content

Instantly share code, notes, and snippets.

@rhyolight
Last active August 21, 2016 17:02
Show Gist options
  • Save rhyolight/15b8454780424f690d00 to your computer and use it in GitHub Desktop.
Save rhyolight/15b8454780424f690d00 to your computer and use it in GitHub Desktop.
sudo apt-get update -y
sudo apt-get install git g++ cmake python-dev -y
git clone https://github.com/numenta/nupic.core.git
git clone https://github.com/numenta/nupic.git
export NUPIC=$HOME/nupic
export NUPIC_CORE=$HOME/nupic.core
curl https://bootstrap.pypa.io/get-pip.py | sudo python
cd $NUPIC_CORE
pip install -r bindings/py/requirements.txt --user
pip install pycapnp==0.5.8 --user
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 -j3
make install
cd $NUPIC_CORE/build/release/bin
./cpp_region_test
./unit_tests
cd $NUPIC_CORE
python setup.py install --user
cd $NUPIC
python setup.py install --user
export PATH=~/.local/bin:$PATH
python $NUPIC/scripts/run_nupic_tests.py -u
@pettitda
Copy link

pettitda commented May 9, 2016

runs all the way to line 24 without errors then returns 'ImportError: No Module named _markerlib' on Ubuntu 14.04.4LTS running on VirtualBox. 'Pip install markerlib --user' doesn't fix it.

@pettitda
Copy link

pettitda commented May 9, 2016

I fixed the issue above by installing the Ubuntu package 'python-setuptools'

sudo apt-get install python-setuptools

Now the tests run to completion with "12 failed, 854 passed, 24 skipped in 119.91 seconds". I assume that is expected with 32bit Linux?

@vitaly-krugl
Copy link

vitaly-krugl commented Aug 20, 2016

@rhyolight, please change pycapnp ==> pycapnp==0.5.8. This is what nupic.core build presently depends on.

@rhyolight
Copy link
Author

Updated, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment