Last active
          February 15, 2017 08:04 
        
      - 
      
- 
        Save arc279/ace934e6786e8f132f0f824763226c46 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
    
  
  
    
  | export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:$(python-config --prefix)/include" | 
  
    
      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 yum -y install git vim tree cmake wget | |
| sudo yum -y groupinstall "Development Tools" | |
| sudo yum -y install libpng-devel.x86_64 libpng12-devel.x86_64 gtk2 libXdmcp.x86_64 | |
| if [ ! -d ~/.pyenv ]; then | |
| wget -nc https://github.com/yyuu/pyenv/archive/master.zip | |
| unzip master.zip | |
| mv pyenv-master ~/.pyenv | |
| cat <<-'EOD' >> .bashrc | |
| export PATH="$HOME/.pyenv/bin:$PATH" | |
| eval "$(pyenv init -)" | |
| EOD | |
| fi | |
| . .bashrc | |
| pyenv install anaconda3-4.2.0 | |
| pyenv global anaconda3-4.2.0 | |
| pip install --upgrade pip | |
| conda install -y -c menpo opencv3 | |
| conda install -y -c conda-forge dlib | |
| cd $(python-config --prefix)/lib | |
| ln -s ../pkgs/jpeg-8d-2/lib/libjpeg.so.8 . | |
| cd - >/dev/null | |
| python -c 'import cv2; print(cv2.__version__)' | |
| python -c 'import dlib; print(dlib.__name__)' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment