sudo yum -y install epel-release
sudo yum -y install gcc gcc-c++ python-pip python-devel atlas atlas-devel gcc-gfortran openssl-devel libffi-devel
# use pip or pip3 as you prefer for python or python3
sudo pip install --upgrade virtualenv
sudo virtualenv --system-site-packages ~/venvs/tensorflow
sudo pip install --upgrade numpy scipy wheel cryptography #optional
# install tensorflow
# tensorflow-cpu
sudo pip install --upgrade tensorflow
# tensorflow-gpu
sudo pip install --upgrade tensorflow-gpu
출처 : https://gist.github.com/thoolihan/28679cd8156744a62f88
## CentOS CUDA 설치
1. https://developer.nvidia.com/cuda-downloads 접속
2. Linux -> x86_64 -> CentOS -> 7 -> rpm(local) 선택 후 다운 로드
( Base Installer, Patch 1 모두 다운 로드)
3. Base Installer 설치
`sudo rpm -i cuda-repo-rhel7-9-1-local-9.1.85-1.x86_64.rpm`
`sudo yum clean all`
`sudo yum install cuda`
4. Patch 1 설치
`sudo rpm -i cuda-repo-rhel7-9-1-local-cublas-performance-update-1-1.0-1.x86_64.rpm`
참고하세요.