Skip to content

Instantly share code, notes, and snippets.

@sono-bfio
Last active February 19, 2016 17:28
Show Gist options
  • Save sono-bfio/0876cac7a8068eb37350 to your computer and use it in GitHub Desktop.
Save sono-bfio/0876cac7a8068eb37350 to your computer and use it in GitHub Desktop.
PyCaffe Install on Bitfusion Caffe AMI
sudo su -
pip install --upgrade pip
cd /opt/caffe/python
/usr/local/bin/pip install -r requirements.txt
cd ..
make pycaffe -j2
make distribute
echo 'export PYTHONPATH=/opt/caffe/python:$PYTHONPATH' >> ~/.bashrc
echo 'export PYTHONPATH=/opt/caffe/python:$PYTHONPATH' >> /home/ubuntu/.bashrc
exit
source .bashrc
# If you launch the python terminal, you should be able to import caffe
ubuntu@ip-172-31-67-28:/opt/caffe-cpu# python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import caffe
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment