Dev record/Ubuntu
-
문제 상황 W: Target Packages (main/binary-amd64/Packages) is configured multiple times apt-get update를 하는데 위와같은 warning 경고 메세지가 나온다. 해결 방안 sudo rm /etc/apt/sources.list sudo software-properties-gtk sources.list를 제거 한다. 그 다음 software 삭제를 위해 software & updates로 진입한다. 해당 경우는 VSCode를 설치하다가 발생한 문제로 해당 volume을 삭제한다. Remove를 클릭 그러면 해당 volume이 제거되고 close를 클릭한다. 다시 apt-get update를 시도하면 해당 warning이 제거된다.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times문제 상황 W: Target Packages (main/binary-amd64/Packages) is configured multiple times apt-get update를 하는데 위와같은 warning 경고 메세지가 나온다. 해결 방안 sudo rm /etc/apt/sources.list sudo software-properties-gtk sources.list를 제거 한다. 그 다음 software 삭제를 위해 software & updates로 진입한다. 해당 경우는 VSCode를 설치하다가 발생한 문제로 해당 volume을 삭제한다. Remove를 클릭 그러면 해당 volume이 제거되고 close를 클릭한다. 다시 apt-get update를 시도하면 해당 warning이 제거된다.
2023.01.05 -
문제 상황 Could not resolve 'kr.archive.ubuntu.com' apt-get update 등을 하는데 위와 같은 에러 코드가 발생하는 경우 해결 방안 sudo gedit /etc/resolv.conf nameserver를 위와 같이 8.8.8.8 로 변경한다.
Could not resolve 'kr.archive.ubuntu.com'문제 상황 Could not resolve 'kr.archive.ubuntu.com' apt-get update 등을 하는데 위와 같은 에러 코드가 발생하는 경우 해결 방안 sudo gedit /etc/resolv.conf nameserver를 위와 같이 8.8.8.8 로 변경한다.
2023.01.05 -
문제상황 Package python-pip is not available, but is referred to by another package. 해결 방안 curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py python get-pip.py reference https://stackoverflow.com/questions/64187581/e-package-python-pip-has-no-installation-candidate
Package python-pip is not available, but is referred to by another package.문제상황 Package python-pip is not available, but is referred to by another package. 해결 방안 curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py python get-pip.py reference https://stackoverflow.com/questions/64187581/e-package-python-pip-has-no-installation-candidate
2023.01.05 -
문제상황 VScode 내의 terminal에서 matplotlib을 사용하려고 하면서 발생한 에러 코드 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/eddy/anaconda3/envs/py3.9/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. 해결 방안 GUI가 없는 서버를 위한 opencv를 설치하면 해결된다...
VScode 시각화 툴 안됨 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/eddy/anaconda3/envs/py3.9/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found.This application failed to start because no Qt platform plugi..문제상황 VScode 내의 terminal에서 matplotlib을 사용하려고 하면서 발생한 에러 코드 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/eddy/anaconda3/envs/py3.9/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. 해결 방안 GUI가 없는 서버를 위한 opencv를 설치하면 해결된다...
2023.01.04 -
문제 상황 VSCode에서 주피터 노트(Jupyter notebook)을 실행하려니 이런 에러코드가 나온다. Running cells with 'Python 3.7.13 ('base')' requires ipykernel package. 이는 파이썬 버전과 상관없이 ipykernel 패키지가 깔려있지 않아 발생한다. 해결 방안 ctrl + shift + ` => open new terminal pip install ipykernel ctrl + shift + ` 를 vscode에서 누르면 터미널이 실행된다. 여기서 pip install ipykernel을 입력하면 패키지 설치가 되고 다시 명령어를 실행하면 작동한다.
Running cells with 'Python 3.7.13 ('base')' requires ipykernel package.문제 상황 VSCode에서 주피터 노트(Jupyter notebook)을 실행하려니 이런 에러코드가 나온다. Running cells with 'Python 3.7.13 ('base')' requires ipykernel package. 이는 파이썬 버전과 상관없이 ipykernel 패키지가 깔려있지 않아 발생한다. 해결 방안 ctrl + shift + ` => open new terminal pip install ipykernel ctrl + shift + ` 를 vscode에서 누르면 터미널이 실행된다. 여기서 pip install ipykernel을 입력하면 패키지 설치가 되고 다시 명령어를 실행하면 작동한다.
2023.01.04 -
문제 상황 ModuleNotFoundError: No module named 'pandas’ pandas package가 깔려있지 않아 발생하는 에러 코드 해결 방안 # ModuleNotFoundError: No module named 'pandas’ pip install pandas 간단하게 pandas를 pip으로 설치하면 끝 Jupyter notebook(주피터 노트북)을 사용할 경우 '!' 느낌표를 pip 앞에 붙여야 커맨드가 작동한다.
ModuleNotFoundError: No module named 'pandas’문제 상황 ModuleNotFoundError: No module named 'pandas’ pandas package가 깔려있지 않아 발생하는 에러 코드 해결 방안 # ModuleNotFoundError: No module named 'pandas’ pip install pandas 간단하게 pandas를 pip으로 설치하면 끝 Jupyter notebook(주피터 노트북)을 사용할 경우 '!' 느낌표를 pip 앞에 붙여야 커맨드가 작동한다.
2023.01.04