[Python] win32api Error - ImportError: DLL load failed while importing win32api: 지정된 모듈을 찾을 수 없습니다.
·
Develop/Python
https://github.com/mhammond/pywin32/issues/1431 ImportError: DLL load failed while importing win32event: The specified module could not be found. · Issue #1431 · mhammond/pywI just installed Python 3.8.0 32-bit, then installed a few modules including pywin32 using pip. When I try "import win32event", I get the following error: Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 ...github.com1. 이전 버전 설치pip..
[Python] VSCode Error - Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details.
·
Develop/Python
Sorry, something went wrong activating IntelliCode support for Python · Issue #50 · microsoft/pylance-release Sorry, something went wrong activating IntelliCode support for Python · Issue #50 · microsoft/pylance-releaseGetting the following error after installing pylance Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output w..
[Python] 기상청 API Hub의 날씨 & 날씨 예보 데이터 수집 with. airflow
·
Develop/Python
KimGeunUk/airflow-weather: Weather & Weather Forecast Data Pipeline With Apache Airflow GitHub - KimGeunUk/airflow-weather: Weather & Weather Forecast Data Pipeline With Apache AirflowWeather & Weather Forecast Data Pipeline With Apache Airflow - KimGeunUk/airflow-weathergithub.com 오탈자, 에러, 수정 제안이 있으시다면 댓글 부탁드립니다.
[Python] Airflow Dag 정보 (Task Context) 전달
·
Develop/Python
...from train_model.main import runlocal_tz = pendulum.timezone("Asia/Seoul")...dag = DAG( dag_id='train_model_dag', default_args=default_args, schedule_interval='30 9 * * *', # 매일 09:30 실행 catchup=False)process_task = PythonOperator( task_id='train_model', python_callable=run, dag=dag) 위와 같이 간단한 dag을 구성 후 train_model의 run 함수에서 airflow에서 작업을 수행한 시간인 execution_date를 가져오고 싶었다..
[Python] Windows에 pyenv 설치
·
Develop/Python
프로젝트마다 사용하는 python 버전이 달라질 수 있으므로, pyenv를 사용하기로 결정 1. 설치https://github.com/pyenv-win/pyenv-win GitHub - pyenv-win/pyenv-win: pyenv for Windows. pyenv is a simple python version management tool. It lets you easily switch betpyenv for Windows. pyenv is a simple python version management tool. It lets you easily switch between multiple versions of Python. It's simple, unobtrusive, and follows the U..
[Error] / [Pyinstaller] xgboost XGBoostLibraryNotFound error
·
Develop/Python
문제 상황xgboost를 import한 .py 파일을 pyinstaller로 .exe 로 패키징 할 때 다음과 같은 에러를 출력xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?List of candidates:C:\...\AppData\Local\Temp\_MEI103562\xgboost\xgboost.dllC:\...\AppData\Local\Temp\_MEI103562\xgboost\../../lib/xgboost.dllC:\...\AppData\Local\Temp\_MEI103562\xg..
[Python] matplotlib 한글 폰트 전역 설정
·
Develop/Python
Window 환경입니다.1. 폰트 다운 & 설치저는 네이버 무료 폰트인 나눔체를 설치했습니다.네이버 글꼴 모음 (naver.com) 네이버 글꼴 모음네이버가 만든 150여종의 글꼴을 한번에 만나보세요hangeul.naver.com설치를 진행 후 Window의 경우 .ttf 우클릭 모든 사용자용으로 설치를 진행합니다.(모든 사용자용으로 설치를 진행해야 C:\Windows\Fonts에 설치 됩니다. 그냥 설치하면 C:\Windows\User\AppData\... 에 설치 됩니다.)2. matplotlibrc 수정import matplotlib.font_manager as fmimport matplotlib as mplprint(mpl.matplotlib_fname())위 코드를 ..
[Python] 리스트의 원소 곱 - reduce
·
Develop/Python
리스트 내의 모든 원소들을 곱해주는 함수를 간단하게 사용하고 싶어서 찾아보았습니다.원소들을 더해주는 함수는 sum() 함수를 사용하면 빠르게 결과를 얻을 수 있지만,곱해주는 함수는 보지 못한 것 같아 이번에 정리하고자 글을 작성합니다. reducefunctiools 내장 모듈로, 여러 개의 데이터를 대상으로 주로 누적 집계를 내기 위해서 사용합니다. 기본 문법은 다음과 같습니다.from functools import reducereduce(집계 함수, 순회 가능한 데이터) example리스트 내의 모든 원소들을 곱해주는 함수reduce(lambda x, y: x*y, num_list)  리스트 내의 모든 원소들을 더해주는 함수reduce(lambda x, y: x+y, num_list)
욱근욱