Bite Bits/Raspberry Pi

Raspbian JESSIE 에서 Python 3 용 scipy, ipython, jupyter notebook 등 설치, (머신러닝 관련 패키지)

상영 2017. 9. 19. 09:52

raspbian jessie 에는 python 2.7 과 python 3.4 버전 제공.

pip 를 이용해 파이썬 패키지를 설치하고자 할 때,

2.* 용은 pip 를 사용하고, 

3.* 용은 pip3 를 사용

numpypip3 를 이용해 설치 가능하지만,

scipypip3 를 이용해 설치시 계속 에러 발생.


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

weidadeyue_jupyter-notebook.pdf
0.03MB