deep learning 설치 정리

카테고리 없음 2014. 11. 3. 15:45

Install pip and virtualenv for Ubuntu 10.10 Maverick and newer

$ sudo apt-get install python-pip python-dev build-essential 
$ sudo pip install --upgrade pip 
$ sudo pip install --upgrade virtualenv 

For older versions of Ubuntu

  • Install Easy Install
    $ sudo apt-get install python-setuptools python-dev build-essential 
    
  • Install pip
    $ sudo easy_install pip 
    
  • Install virtualenv
    $ sudo pip install --upgrade virtualenv 


python yaml 

  sudo apt-get install python-Yaml


http://pyyaml.org/wiki/PyYAML 에서 설치

$ sudo python setup.py install
$ python setup.py test


path 등록

  sudo nano ~/.bashrc


python numpy 

 sudo apt-get install python-numpy


python numpy, scipy, matplotlib, ipython, ipython-notebook, pandas, sympy, nose 

 sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose


ImportError : No Module named caffe

 # in caffe root dir

  make all   

  make pycaffe

  make distribute

  # make dir for custom python modules, install caffe

   mkdir ~/python

   mv distribute/python/caffe ~/python

   # set PYTHONPATH (this should go in your  .bashrc or whatever)

   PYTHONPATH=${HOME}/python:$PYTHONPATH   


ImportError : No Module named flask

   sudo pip install Flask                                                                                                                                                                                            


ImportError : No Module named tornado.wsgi

   sudo pip install tornado                                                                                                                                                                                            


cblas.h not found

sudo apt-get install python-dev python-numpy python-scipy python-magic python-matplotlib libatlas-base-dev libjpeg-dev libopencv-dev git