반응형
Python development library를 설치
우선 아래 명령어로 Raspberry Pi 3 GPIO 핀 매핑을 볼 수 있다.
$gpio readall
RPi.GPIO 라이브러리는 이미 OS 에 설치되어 있으므로 우리는 Python development library를 설치한다.
설치 명령어는 아래와 같다.
$ sudo apt-get install python-dev
설치화면이다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | pi@raspberrypi:~/smartfarm $ sudo apt-get install python-dev Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libpython-dev libpython2.7-dev python2.7-dev The following NEW packages will be installed: libpython-dev libpython2.7-dev python-dev python2.7-dev 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 18.2 MB of archives. After this operation, 25.7 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libpython2.7-dev armhf 2.7.9-2+deb8u1 [17.9 MB] Get:2 http://mirrordirector.raspbian.org/raspbian/ jessie/main python-dev armhf 2.7.9-1 [1,188 B] Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libpython-dev armhf 2.7.9-1 [19.6 kB] Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main python2.7-dev armhf 2.7.9-2+deb8u1 [287 kB] Fetched 18.2 MB in 7s (2,332 kB/s) Selecting previously unselected package libpython2.7-dev:armhf. (Reading database ... 116921 files and directories currently installed.) Preparing to unpack .../libpython2.7-dev_2.7.9-2+deb8u1_armhf.deb ... Unpacking libpython2.7-dev:armhf (2.7.9-2+deb8u1) ... Selecting previously unselected package libpython-dev:armhf. Preparing to unpack .../libpython-dev_2.7.9-1_armhf.deb ... Unpacking libpython-dev:armhf (2.7.9-1) ... Selecting previously unselected package python2.7-dev. Preparing to unpack .../python2.7-dev_2.7.9-2+deb8u1_armhf.deb ... Unpacking python2.7-dev (2.7.9-2+deb8u1) ... Selecting previously unselected package python-dev. Preparing to unpack .../python-dev_2.7.9-1_armhf.deb ... Unpacking python-dev (2.7.9-1) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up libpython2.7-dev:armhf (2.7.9-2+deb8u1) ... Setting up libpython-dev:armhf (2.7.9-1) ... Setting up python2.7-dev (2.7.9-2+deb8u1) ... Setting up python-dev (2.7.9-1) ... pi@raspberrypi:~/smartfarm $ cd |
자료와 이미지 출처 : http://i4consulting.org/5-best-python-libraries-for-machine-learning/
반응형
'라즈베리파이' 카테고리의 다른 글
RHT-05 온도 습도센서를 사용해 Raspberry pi3 에서 데이터 획득하기 (0) | 2019.02.21 |
---|---|
raspberry pi 3 에서 mcp3208 adc 안될 때 spi 통신 이상 (0) | 2019.02.21 |
apache2 리스타트 에러 - Job for apache2.service failed. (0) | 2019.02.21 |
라즈베리파이 GPIO 포트를 인터럽트로 사용하는 예제 (0) | 2019.01.30 |
온도 습도 센서 DHT11 에러. raspberry pi DHT11 센서 data not good skip error 해결 (0) | 2019.01.27 |