Last active
February 19, 2016 17:28
-
-
Save sono-bfio/0876cac7a8068eb37350 to your computer and use it in GitHub Desktop.
PyCaffe Install on Bitfusion Caffe AMI
This file contains 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 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