분류 전체보기

· Python
https://github.com/pypa/pip/issues/11436 Only emit a metadata warning once · Issue #11436 · pypa/pip From #11352 (comment) BTW, the warning is quite noisy: [root@9a62f3789682 /]# mkdir -p /usr/lib64/python3.11/site-packages/mercurial-6.2-py3.11.egg-info [root@9a62f3789682 /]# pip list WARNING: Ski... github.com 원인 mac에서 homebrew로 package 설치시 metadata 소실로 warning 발생 WARNING: Skipping /opt/homebre..
· Python
Python Command Flag python -c - (command) 직접 명령어를 입력해 Python 코드를 실행 ex) python -c "import pandas as pd" python -m - (module) Python 모듈을 스크립트로 실행. ex) 'python -m http.server' 현재 디렉토리에서 HTTP 서버 실행 python -i - (interactive) 스크립트 실행 후 대화형 모드로 진입 ex) 스크립트 실행 후 interpreter로 진입 python -O - (Optimize) 최적화 모드를 활성화, assert문을 제거하고 `__debug__`를 'False'로 설정 python -B - (bytecode) .pyc 파일을 생성하는 것을 방지. 보통 개발 중..
· Database
원인 docker로 기존 airflow 2.4 -> 2.8로 업그레이드 후 다시 2.8 -> 2.4로 downgrade 할 때 db migration이 되지 않아 생기는 문제 Solution 1) airflow-init 시 구성 단계에서 `airflow db upgrade'를 실행해야하지만 init 단계의 time이 짧아 바로 종료 되어 버림 따라서 local 환경이라면 `airflow db migrate`로 db migrate 혹은 `airflow db upgrade`를 수행 https://airflow.apache.org/docs/apache-airflow/stable/migrations-ref.html Reference for Database Migrations — Airflow Documentat..
· Database
airflow db 초기화 오류 ---------------------------------------------------------------------------------------------------------------------- Traceback (most recent call last): File "/opt/homebrew/bin/airflow", line 5, in from airflow.__main__ import main File "/opt/homebrew/lib/python3.11/site-packages/airflow/__init__.py", line 68, in settings.initialize() File "/opt/homebrew/lib/python3.11/site-pa..
· Python
ERROR: file or directory not found pytest 시 import package의 path가 sys.path에 등록되지 않아 module을 불러올 수 없는 상태이다. 1) python이 실행과 동시에 env 설정 / mac (/.zshrc), Windows(/.bashrc) # 경로 등록 export PYTHONPATH="/Users/code/~" # 다수의 경로 등록 export PYTHONPATH="/Users/code/~:/Users/workspace/~" 2) python 환경 변수 PYTHONHOME 표준 Python 라이브러리의 위치를 변경합니다. 기본적으로 라이브러리는 prefix/lib/pythonversion 및 exec_prefix/lib/pythonversio..
https://platform.openai.com/docs/guides/function-calling 작동 원리
· Tools
Prompt crafting이란? LLM으로 돌아가는 Github Copilit에게 Clear instructions(명확한 지시)를 제공하는 것 Context(맥락) Intent(의도) Clarity(명확성), 공식 Document에서 용어 Specificity 예시) 아이스크림을 줄래? 어떤 맛의 아이스크림? 토핑은 추가 할거니? 크기는 어떻니? Comment driven development 1) Describe the goal Header 기입 : 하려는 Task에 대한 기술 정의, 어떤 프레임워크를 사용해서 만들것인지, 작성하려는 code language는 무엇인지 짧게 3~4줄 정도 2) Be flexible flexible, AI 도구는 deteministic(결정론적)이 아닌 probabi..
· Python
https://www.lesstif.com/python/python-application-pipx-125305001.html python application을 설치/관리해주는 pipx python 이 아닌 library 를 pipx 로 설치할 경우 아래와 같이 pipx 대신 pip 나 다른 도구를 사용하라는 에러 메시지가 나오며 이때는 pip 를 사용하면 됩니다. No apps associated with package fastapi or its dependencie www.lesstif.com https://pypa.github.io/pipx/ pipx pipx — Install and Run Python Applications in Isolated Environments Documentation: ..
다했다
'분류 전체보기' 카테고리의 글 목록 (6 Page)