Pyinstaller cupy 관련 ModuleNotFound 에러
·
Develop/Python
[filename].spec에 다음을 추가import sysimport cupy... hiddenimports=[ ... ] + [x for x in sys.modules.keys() if x.startswith('cupy.') or x.startswith('cupyx.') or x.startswith('cupy_backends.')] + ['fastrlock', 'fastrlock.rlock'], ...
Python EXE Decompile
·
Develop/Python
0. 준비물[필수] Microsoft C++ Build ToolsPython 3.10+ 버전을 지원하는 최신 디컴파일러(pycdc)는 C++로 작성되어 있습니다. 따라서 소스 코드를 직접 컴파일하여 실행 파일을 만들어야 합니다. 아래 링크에서 'Visual Studio Build Tools'를 다운로드하고, 설치 시 'C++를 사용한 데스크톱 개발' 워크로드를 체크하여 설치합니다.Microsoft C++ Build Tools - Visual Studio Microsoft C++ Build Tools - Visual Studio visualstudio.microsoft.com [선택] HxD가끔 .exe에서 추출한 .pyc 파일의 헤더(파일 정보가 담긴 앞부분)가 손상되는 경우가 있습니다. 이럴 때 파일의..
[Dockerfile] From ubuntu, Python with Node.js
·
Develop/Docker
shell은 zsh 사용FROM ubuntu:latestRUN apt-get update && apt-get install -y \ git gcc build-essential curl zsh \ zlib1g-dev libffi-dev libssl-dev liblzma-dev \ libbz2-dev libreadline-dev libsqlite3-devSHELL ["/usr/bin/zsh", "-c"]WORKDIR /home/userENV SHELL=/usr/bin/zsh# nvm 설치RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \ export NVM_DIR="$HOME/.n..
[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] 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..
간단한 Airflow v2.10.5 환경 구축 (with. dockerfile)
·
ML & DL/Practice
WSL2 Ubuntuapt 업데이트sudo apt updatesudo apt install sudo프로젝트 폴더 권한 부여sudo chown -R [사용자 계정명] [프로젝트 디렉토리]파이썬 설치sudo apt install python3가상환경 생성 (프로젝트 디렉토리에서)sudo apt install python3-venvpython3 -m venv venvsource venv/bin/activateairflow 라이브러리 설치pip install apache-airflow==2.10.5airflow 세팅 및 실행 (프로젝트 디렉토리에서)export AIRFLOW_HOME=$PWD/airflowairflow db initsed -i 's/^load_examples = True/load_examples..
[Time Series Forecasting] Sliding Window Dataset
·
ML & DL/Deep Learning
Sliding Window DatasetTime Series Forecasting에 사용되는 Sliding Window Dataset은 연속적인 시계열 데이터를 여러 개의 고정된 크기의 입력과 출력 윈도우로 나누어 Dataset을 구성하는 방법입니다.  다음은 Pytorch로 Dataset 다변량(Multi-Variate) 다중 스텝(Multi-Step) 데이터셋을 구성하기 위한 코드입니다.import torchfrom torch.utils.data import Datasetclass SlidingWindowDataset(Dataset): def __init__(self, train_X, target_variables, input_window, output_window, stride=1): ..
[Python] matplotlib 한글 폰트 전역 설정
·
Develop/Python
Window 환경입니다.1. 폰트 다운 & 설치저는 네이버 무료 폰트인 나눔체를 설치했습니다.네이버 글꼴 모음 (naver.com) 네이버 글꼴 모음네이버가 만든 150여종의 글꼴을 한번에 만나보세요hangeul.naver.com설치를 진행 후 Window의 경우 .ttf 우클릭 \(\rightarrow\) 모든 사용자용으로 설치를 진행합니다.(모든 사용자용으로 설치를 진행해야 C:\Windows\Fonts에 설치 됩니다. 그냥 설치하면 C:\Windows\User\AppData\... 에 설치 됩니다.)2. matplotlibrc 수정import matplotlib.font_manager as fmimport matplotlib as mplprint(mpl.matplotlib_fname())위 코드를 ..
욱근욱
'python' 태그의 글 목록