728x90
![](http://t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png)
아래와 같이 라즈베리 파이 4 에서 cffi 라이브러리 설치시 ERROR: Failed building wheel for cffi 가 발생하는 경우에는 다음과 같이 처리한다.
![](http://t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png)
ciffi 는 libffi 에 의존한다. 따라서 다음과 같이 먼저 libffi-dev 패키지를 설치해야 한다. 사용하고 있는 배포판에 따라 패키지는 다소 상이할 수 있다.
(env) pi@raspberrypi:~/GC-IoT_Python_example/example $ sudo apt install libffi-dev 패키지 목록을 읽는 중입니다... 완료 의존성 트리를 만드는 중입니다 상태 정보를 읽는 중입니다... 완료 다음 패키지가 자동으로 설치되었지만 더 이상 필요하지 않습니다: rpi-eeprom-images Use 'sudo apt autoremove' to remove it. 다음 새 패키지를 설치할 것입니다: libffi-dev 0개 업그레이드, 1개 새로 설치, 0개 제거 및 0개 업그레이드 안 함. 159 k바이트 아카이브를 받아야 합니다. Progress: [ 20%] [#################........................................................................] Progress: [ 40%] [###################################......................................................] Progress: [ 80%] [#######################################################################..................] Selecting previously unselected package libffi-dev:armhf. (데이터베이스 읽는중 ...현재 157152개의 파일과 디렉터리가 설치되어 있습니다.) Preparing to unpack .../libffi-dev_3.2.1-9_armhf.deb ... Unpacking libffi-dev:armhf (3.2.1-9) ... libffi-dev:armhf (3.2.1-9) 설정하는 중입니다 ... Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ... Processing triggers for man-db (2.8.5-2) ...
해당 패키지 설치 후 다시 ciffi 를 설치해보면 아래와 같이 에러 없이 정상적으로 설치됨을 알 수 있다.
![](http://t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png)
https://raspberrypi.stackexchange.com/questions/94695/failed-building-wheel-for-cffi-on-model-3b
Failed building wheel for cffi on Model 3B+
The OS running on the Pi is Raspbian 9.8, I'm trying to do the sudo pip install --pre azure So I can send images from my Pi to my blob storage on azure but when I run the above command it begin...
raspberrypi.stackexchange.com
728x90
댓글을 사용할 수 없습니다.