Dev/Bug + Error

    fatal error: sox.h: 그런 파일이나 디렉터리가 없습니다

    GitHub - turpaultn/DESED: Repo associated to the DESED dataset, download and creation of data Repo associated to the DESED dataset, download and creation of data - GitHub - turpaultn/DESED: Repo associated to the DESED dataset, download and creation of data github.com DESED 데이터셋 다운로드 과정에서 나타난 오류. pip3 install sox sudo apt-get install sox libsox-fmt-all sudo apt-get install sox libsox-dev pip3 in..

    [Keras] cannot import name 'to_categorical' from 'keras.utils'

    cannot import name 'to_categorical' from 'keras.utils' 오류 발생 해결책: from keras.utils import to_categorical # 대신 from tensorflow.keras.utils import to_categorical

    [VS Code] ModuleNotFoundError: No module named 'pandas'

    문제 상황 VS Code에서 jupyter notebook 설정 후 코드를 실행하려 할 때 ModuleNotFoundError: No module named 'pandas' 라는 오류가 뜸. 해결 방법 sudo -H python3 -m pip install Cython sudo -H python3 -m pip install numpy sudo -H python3 -m pip install pandas 해당 명령어를 차례대로 실행 후 다시 해보면 오류가 해결된다.

    [pip 오류] Command python setup.py egg_info failed with error code 1 ..

    문제 상황 VS Code에서 pip로 무언가를 설치할 때 Command python setup.py egg_info failed with error code 1 .. 라는 오류가 뜸. 해결 방법 sudo -H pip install --upgrade --ignore-installed pip setuptools 해당 명령어 실행 후 재설치하면 해결된다.

    [pip 오류] Command python setup.py egg_info failed with error code 1 ..

    문제 상황 VS Code에서 pip로 무언가를 설치할 때 Command python setup.py egg_info failed with error code 1 .. 라는 오류가 뜸. 해결 방법 sudo -H pip install --upgrade --ignore-installed pip setuptools 해당 명령어 실행 후 재설치하면 해결된다.

    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-f22jgu02/cryptography/

    문제 상황: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-f22jgu02/cryptography/ 해결: pip3 install setuptools-rust pip3 install --upgrade pip

    [Git 오류] Make sure you configure your 'user.name' and 'user.email' in git

    문제 상황 VS Code에서 git과 Github 연동 시 파일을 commit 할 때 Make sure you configure your 'user.name' and 'user.email' in git 라는 오류가 뜸. Commit을 할 때 필요한 사용자 정보 설정을 하지 않아서 발생하는 오류. 해결 방법 $ git config --global user.name "사용자이름" $ git config --global user.email "사용자메일주소" 프로젝트마다 다른 이름/메일 주소를 사용하고 싶다면 --global 옵션을 빼고 실행하면 됨.

    [파이썬] OSError: [Errno 98] Address already in use

    문제 장고(Django) 개발 중 발생한 에러. 사용하려는 포트가 비정상적으로 점령당해 쓸 수 없는 상황이다. OSError: [Errno 98] Address already in use 해결 방법 포트를 점령하고 있는 process를 강제로 kill 하면 된다. 1. PID 확인 PID를 확인하기 위해 열려진 socket 파일들을 보여주는 lsof (=list open files) 명령어를 사용한다. $ lsof -i :8089 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME locust 31838 joftware 3u IPv6 294686 0t0 TCP *:8089 (LISTEN) 2. KILL kill 명령어로 -SIGKILL(-9) 을 PID에 전달 $ ..