CS97 [python] macos mysqlclient 설치 오류 (해결) 문제 상황 macos에서 django 서버를 실행하려고 mysqlclient를 설치하는데, 설치가 안된다.. 오류 메시지는 아래와 같다. Requirement already satisfied: pip in [로컬경로]/.pyenv/versions/3.10.6/envs/airecom/lib/python3.10/site-packages (22.2.1) Collecting pip Downloading pip-22.3.1-py3-none-any.whl (2.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 3.5 MB/s eta 0:00:00 Installing collected packages: pip Attempting uninstall: pip Foun.. 2022. 11. 23. [docker, opencv] docker opencv 에러 (libGL.so.1: cannot open shared object file) docker로 opencv를 설치하였는데, opencv 라이브러리를 import 하는 부분에서 다음과 같은 오류를 마주함 libGL.so.1: cannot open shared object file ImportError: libGL.so.1: cannot open shared object file: No such file or directory F1109 06:47:44.510269 1 main.go:50] Failed to execute component: exit status 1 이 문제는 다음과 같은 명령어를 dockerfile에 추가하여 해결할 수 있음. RUN apt-get update RUN apt-get -y install libgl1-mesa-glx 참고: https://shuka.tist.. 2022. 11. 9. [python] logging 라이브러리 오류 파이썬으로 로그 출력 시 logging 라이브러리를 활용하는 것이 좋다고 해서 테스트를 해보는데, 자꾸만 오류가 났다. (******) ➜ logging python logging.py Traceback (most recent call last): File "/Users/******/******/small-potato/logging/logging.py", line 10, in main() File "/Users/******/******/small-potato/logging/logging.py", line 3, in main logging.warning('Watch out!') AttributeError: module 'logging' has no attribute 'warning' 왜 ??????????.. 2022. 10. 28. [kubeflow, kubernetes] 에러 파드 삭제하는 방법 (kubeflow delete error pod) 아래 명령어를 통해 에러 파드를 모두 삭제 가능하다. 이를 응용하여 Error -> Completed 또는 Running으로 변경하여 다른 상태의 파드도 삭제 가능함. # default namespace kubectl get pods | grep Error | awk '{ print $1 }' | xargs kubectl delete pod # specific namespace kubectl get pods -n | grep Error | awk '{ print $1 }' | xargs kubectl delete pod -n # all namespace kubectl get pods -A | grep Error | awk '{ print $1 }' | xargs kubectl delete pod -A 2022. 10. 28. [linux] 우분투 캐시 삭제하는 방법(ubuntu cache 삭제) sudo 권한이 있어야 하며, 아래 명령어를 통해 삭제할 수 있다. 다만 기존에 동작하던 것들이 중단될 수 있으니 심사숙고 후에 수행해야 한다. sudo sysctl -w vm.drop_caches=2 2022. 10. 28. [linux] 쉘 커맨드를 vi 모드로 사용하기(terminal command vi mode) 아래 문장을 ~/.bash_profile 에 추가한다. # ~/.bash_profile set -o vi 2022. 10. 26. 이전 1 ··· 11 12 13 14 15 16 17 다음