본문 바로가기

반응형

hacking or software engineering skills

(64)
ModuleNotFoundError: No module named 'open_clip' 에러 해결 pip install open_clip_torch
[에러] AttributeError: module 'streamlit' has no attribute 'set_page_config' pip install streamlit==1.12.2 version을 낮춘다.
[에러] 우분투 jupyter lab 설치 에러, jupyter not found, 환경 설정 하기 문제점 해결 export PATH="$HOME/.local/bin:$PATH" https://stackoverflow.com/questions/57677481/jupyter-command-jupyter-lab-not-found Jupyter command `jupyter-lab` not found I have tried to install jupyter lab on my Kubuntu machine. If I install jupyter lab with 'pip3 install jupyter jupyterlab' the command 'jupyter notebook' works completly fine. But if I try to run ' stackoverflow.com
[error] psycopg2 install error, postgresql python 설치 에러 해결법 pip3 install psycopg2-binary
[centos] dlib install error, C++11 is required to use dlib, but the version of GCC you are using is tooold and doesn't support C++11. You need GCC 4.9 or newer. 에러 해결법 문제점1 문제점2 https://hidden-loca.tistory.com/6 [Python] dlib 설치하기. 2021. 03. 17 수정 근 수개월 동안 가장 많은 페이지 방문이 있었지만, 내용상 대충대충 써 내린 부분이 많아 새로 수정. - 가상환경생성 dlib을 설치할 가상환경을 만들었습니다. 가상환경이름은 dlib hidden-loca.tistory.com 위 방법대로 했는데도 안됐다. C++11 is required to use dlib, but the version of GCC you are using is too old and doesn't support C++11. You need GCC 4.9 or newer. conda install dlib 위 명령어는 안됨... 해결책 conda..
[mac os] matplotib 사용시 font 한글 폰트 깨짐 현상 해결법 import matplotlib.pyplot as plt import matplotlib as mpl import seaborn as sns mpl.rcParams['axes.unicode_minus'] = False plt.rcParams['font.family'] = 'NanumBarunGothic' plt.rcParams['font.size'] = 14.5 plt.rcParams['figure.figsize'] = (14,4) 대부분 이를 사용하면 해결된다.
[flask] module 'jwt' has no attribute 'encode' pip install pyjwt, jwt 다 안된다. 이거 다 지우고 아래 명령어로 다시 설치하자. pip install PyJWT https://jsikim1.tistory.com/155 Python Django AttributeError: module 'jwt' has no attribute 'decode' or 'encode' 해결 방법 Python django AttributeError: module 'jwt' has no attribute 'decode', AttributeError: module 'jwt' has no attribute 'encode' 해결 방법 AttributeError: module 'jwt' has no attribute 'decode' A.. jsikim1.tistory..
[postman] postman 이용해서 post 쿼리 날려보기. 에러 the request Content-Type was not 'application/json'. post 방식으로 포스트맨 이용해서 flask 웹서버에 쿼리를 날리고 있었다. 그런데 자꾸 이런 에러가 뜨는 상황 문제점 문제는 내가 postman이란 프로그램을 처음 사용해봐서 생기는 것 같았다. Did not attempt to load JSON data because the request Content-Type was not 'application/json'. the request Content-Type was not 'application/json'.로 보아 날려주는 내용이 json 형태가 아님을 확인 해결책 postman 관련 검색을 통해 해결할 수 있었다. 이런식으로 POST 방식을 선택하고, Body를 누른뒤 raw부분으로 json 데이터 형식으로 데이터를 전송해주면 된다. 간단하다! htt..

728x90
반응형