TensorFlow CentOS 설치, iPython Notebook 설치
TensorFlow CentOS 설치, iPython Notebook 설치
[TensorFlow 설치]
CPU 버전
#>pip install tensorflow
GPU 버전
#>pip install tensorflow-gpu
네트워크 환경에 따라 아래 옵션 사용
--proxy http://PROXYSERVER:PROXYPORT --trusted-host pypi.python.org
pip을 새로 설치한 경우
pip3.6 install tensorflow
tensorflow 버전 확인
python -c 'import tensorflow as tf; print(tf.__version__)'
1.0.0
또는
pip show tensorflow
tensorflow 버전 업그레이드
pip install tensorflow --upgrade
[iPython Notebook 설치]
#>pip install ipython
[iPython Notebook 실행]
#>ipython notebook
브라우저가 자동으로 띄워지며 노트북 생성 및 python 테스트 가능
자동으로 띄워지는 웹 서버의 옵션을 변경해서 외부에서 접속 가능하도록 할 수 있음
#>ipython notebook --ip IPADDRESS --port PORT
옵션 참고
[--certfile NOTEBOOKAPP.CERTFILE] [--ip NOTEBOOKAPP.IP] [--pylab [NOTEBOOKAPP.PYLAB]] [--log-level NOTEBOOKAPP.LOG_LEVEL] [--port-retries NOTEBOOKAPP.PORT_RETRIES] [--notebook-dir NOTEBOOKAPP.NOTEBOOK_DIR] [--config NOTEBOOKAPP.CONFIG_FILE] [--keyfile NOTEBOOKAPP.KEYFILE] [--port NOTEBOOKAPP.PORT] [--transport KERNELMANAGER.TRANSPORT] [--browser NOTEBOOKAPP.BROWSER] [--script] [-y] [--no-browser] [--debug] [--no-mathjax] [--no-script] [--generate-config]
[iPython Notebook 확인]
#>netstat --an|grep PORT
로 해당 PORT가 LISTEN 상태인지 확인
윈도우에서 해당 PORT가 열려있는지 확인할 경우
>telnet IPADDRESS PORT
해서 연결이되면 빈 화면이 나타남.