raspbian jessie 에는 python 2.7 과 python 3.4 버전 제공.
pip 를 이용해 파이썬 패키지를 설치하고자 할 때,
2.* 용은 pip 를 사용하고,
3.* 용은 pip3 를 사용
numpy 는 pip3 를 이용해 설치 가능하지만,
scipy 는 pip3 를 이용해 설치시 계속 에러 발생.
File "scipy/linalg/setup.py", line 20, in configuration
raise NotFoundError('no lapack/blas resources found')
numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
non-existing path in 'scipy/integrate': 'quadpack.h'
검색하니.. raspbian 패키지로 설치가 가능
# python 2.* 용
$ sudo aptitude install python-scipy
# python 3.* 용
$ sudo aptitude install python3-scipy
* 참고 : https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=112308
위에서 numpy 와 scipy 를 설치한 다음..
$ sudo pip3 install ipython matplotlib scikit-learn pillow pandas
와 같이 machine learning 공부를 위한 패키지들 설치.
다음으로 jupyter notebook 을 사용하기 위해 jupyter 설치
$ sudo pip3 install jupyter
설치가 끝나면, 아래와 같이 실행..
$ jupyter-notebook
브라우져가 열리고 jupyter-notebook 실행 환경 완료.
$ ipython notebook
도 같은 결과 (python 을 사용한다면)
jupyter notebook 단축키 : https://www.cheatography.com/weidadeyue/cheat-sheets/jupyter-notebook/
(PDF 파일 : 첨부 다운로드)
weidadeyue_jupyter-notebook.pdf
Jupyter, iPython notebook 차이점 : https://www.quora.com/What-is-the-difference-between-Jupyter-and-IPython-Notebook
'Bite Bits > Raspberry Pi' 카테고리의 다른 글
raspbian jessi 에서 mariadb 원격접속 설정하기 (0) | 2017.12.06 |
---|---|
raspbian jessi 에서 mariadb 설치하기 (0) | 2017.12.05 |
Raspbian Jessie + lighttpd + python (cgi) 설치하기 (0) | 2017.08.23 |
Raspbian JESSIE 에서 ffmpeg 설치 (컴파일) (0) | 2017.08.22 |
Raspbian JESSIE 에서 DNS 툴 사용하기 (nslookup, dig 등) (0) | 2017.08.10 |