Created
February 18, 2016 23:39
-
-
Save rhyolight/6c0b0daf7e827983ef6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update -y | |
sudo apt-get install git 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 | |
sudo apt-get install gcc-4.9 g++-4.9 -y | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 10 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 10 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20 | |
sudo update-alternatives --config gcc | |
sudo update-alternatives --config g++ | |
cd $NUPIC_CORE | |
pip install -r bindings/py/requirements.txt --user | |
pip install pycapnp --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 | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment