본문 바로가기

Python

(7)
"ImportError: libGL.so.1: cannot open shared object file: No such file or directory" 해결방법 현상 Open3d package를 import하다가 이러한 에러가 발생했다. ImportError: libGL.so.1: cannot open shared object file: No such file or directory 해결 아래와 같이 package를 설치해서 해결할 수 있었다. apt-get install libgl1-mesa-glx
"glfw error: x11: the display environment variable is missing" 오류 해결법 현상 Ubuntu환경에서 point cloud 데이터를 Open3d로 plot하다가 이러한 에러가 발생했다. glfw error: x11: the display environment variable is missing 해결법 아래와 같이 package를 설치하면 해결할 수 있다. sudo apt-get install libglfw3 sudo apt-get install libglfw3-dev 참고 https://shnoh171.github.io/gpu%20and%20gpu%20programming/2019/08/26/installing-glfw-on-ubuntu.html
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. 해결방법 현상 파이썬에서 matplotlib를 import하다보면 아래와 같은 error 메세지가 발생한다. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. 해결 Dependency문제로, 아래의 명령어를 입력해서 package를 설치하면 된다. sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev 출처 1. https://stackoverflow.com/questions/68036484/qt6-qt-qpa-plugin-..
파이참 visual studio 단축키 (키맵) 설정 방법 현상 파이참하고 Visual studio하고 단축키가 달라서 불편한 일이 발생해서 파이참 단축키를 비주얼 스튜디오처럼 변경함. 해결 ① File-Setting (Ctrl + Alt + s)로 Settings 창에서 Plugins로 가서 visual studio keymap으로 검색하고 Install 버튼을 누른다. ② Settings창에서 Keymap으로 이동하고 아래 사진과 같이 Visual studio로 설정한다. ③ 기존 파이참은 Shift + F11로 코드를 돌렸지만, 이제 Ctrl + F5를 누르면 Visual studio처럼 코드가 run하는 것을 확인할 수 있다. 참고 1. https://www.sysnet.pe.kr/2/0/12752
Pycharm indexing 느린 문제 및 무한반복 해결법 현상 파이참 (Pycharm)으로 코딩하다 보면 indexing module을 계속 로딩해서 PC가 느려지는 문제가 발생한다. 해결 아래와 같이 File - Settings - Project - Project Structure에서 Excluded로 Mark 해서 해결할 수 있다. 여기서 딥러닝 모델 data와 ckpts (check points) 폴더가 용량이 크기 때문에 Excluded로 Mark 했다. 위 과정을 거치면 해당 폴더의 GUI가 붉은색 아이콘으로 변경되면서 indexing에서 제외된다. 참고 1. https://theonly1.tistory.com/1394
Pycharm 파일 경로 자동 완성 (File path autocomplete) 방법 현상 Pycharm에서는 기본적으로 경로 자동 완성 기능을 지원하지 않는다. 다른 SW에서는 Tab키나 Ctrl + Space키로 경로 자동 완성 기능을 지원한다. 해결방법 파이참 실행하고 File-Settings를 클릭한다. 아래와 같이 Plugins에서 File path autocomplete를 검색하고 install 하면 된다. 이제 파이참에서 Ctrl + Space를 누르면 경로가 자동으로 완성된 것을 확인할 수 있다. 참고 1. https://didalsgur.tistory.com/entry/%ED%8C%8C%EC%9D%B4%EC%B0%B8%EC%97%90%EC%84%9C-%ED%8C%8C%EC%9D%BC-%EA%B2%BD%EB%A1%9C-%EC%9E%90%EB%8F%99%EC%99%84%EC%..
Anaconda(아나콘다) 기업 라이센스 유료 대체 및 해결 방법 Anaconda(아나콘다)는 2020년 9월부터 200명 이상의 직원이 있는 기업 또는 정부 조직 사용자에게 유료로 서비스를 제공하고 있다. 즉, 200명 이상 기업에서 근무하는 사용자라면 Anaconda 사이트에서 Pro 이상의 라이센스를 구매해야 한다. https://www.anaconda.com/pricing Pricing Organizations | Anaconda Anaconda is the birthplace of Python data science. We are a movement of data scientists, data-driven enterprises, and open source communities. www.anaconda.com 따라서 이러한 유료화 문제를 피하기 위해서 Mini..