brew install libmagic
맥환경에서 Unable to revert mtime: /Library/Fonts 메세지 발생시 해당 libmagic 설치로 해결 할수 있다.
brew install libmagic
맥환경에서 Unable to revert mtime: /Library/Fonts 메세지 발생시 해당 libmagic 설치로 해결 할수 있다.
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/Users/guda/dev/python/.venv/lib/python3.7/site-packages/PIL/MpoImagePlugin.py'
Check the permissions.
맥북에서 Visual Studio Code를 이용해 Python 을 개발하다 보니 여러가지 좌충우돌 상황을 격게 된다.
위와 같은 에러 발생시 간단하게 해결이 가능하다.
sudo 명령어를 맨앞에 넣어주면 된다. 권한 문제에는 역시 sudo!!
sudo pip3 install -U scikit-learn scipy matplotlib scikit-image
Xcode 설치 오류
mac에서 xcode를 설치 할 경우 App Store를 통해 설치시 다운로드 속도도 오래 걸리고 설치 멈춤 현상이 일어나는 경우가 많다.
아래 링크를 통해 다운로드 받아서 설치를 진행 하는 경우 빠르게 다운받고 설치가 가능하다.
https://developer.apple.com/download/all/?q=xcode
VScode에서 opencv로 웹캠 접근시 아래와 같이 메세지가 뜨며 실행되지 않는다.
VScode에서 웹캠 접근시 권한 문제로 실행되지 않는 듯 하다.
아래 링크를 참조해서 해결했다.
https://stackoverflow.com/questions/52634009/opencv-python-scripts-mac-aborts
VSCode 실행 후
1. cmd+shift+p
2."shell command: Install code in PATH" 타이핑 후 선택
3. vscode 종료
4. mac 터미널에서 "sudo code"로 vscode 구동
파이선 프로그램 실행 시 오류 없이 실행 되는 것을 확인 할 수 있다.
Mac VSCode에서 파이썬 실행시 아래 링크를 참조 하면 쉽게 환경을 구성할 수 있다.
https://code.visualstudio.com/docs/python/python-tutorial
Mac OS를 Big Sur로 업그레이드 이후 Arduino Sketch 컴파일시
"PYSERIAL OR ESPTOOL DIRECTORIES NOT FOUND" 오류 메시지 발생하였다.
아래 다운로드 링크를 받아 해당 경로에 있는 폴더를 교체하면 된다.
1. 다운로드 링크 : https://github.com/espressif/esptool/archive/v3.0.zip
2. 다운로드 링크 : https://github.com/pyserial/pyserial/archive/v3.4.zip
/Users/[계정명]/Library/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools