본문 바로가기

파이썬에서 프로세스 생성 파이썬에서 프로세스 생성하기CreateProcessA API MSDN : https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-createprocessa ------------------------------------------------------------------------------------------------------- from ctypes import *from defines import * kernel32 = windll.kernel32 #ctypes.windll.kernel32 if __name__ == '__main__': path_to_exec = "python C:\..
PyFPDF 파이썬 모듈 설치 PyFPDF 설치 FPDF란 python상에서 PDF Document 생성을 위한 라이브러리를 뜻합니다.( 참조 URL : https://pyfpdf.readthedocs.io/en/latest/ ) 설치 방법은 위 URL에서 총 4가지로 다루고 있습니다.※ 파이썬이 먼저 설치돼야 합니다. InstallationUsing PyPIUsing EasyInstall c:\python27\Scripts\easy_install.exe fpdfFrom source:Download and unpack source package (zip) or pull from the repositoryRun python setup.py installUsing MSI or Windows Installers1. EasyInstall로 ..
BeautifulSoup4 설치 (bs4) BeautifulSoup4 설치하기(bs4 설치하기) ※ 설치 전에 파이썬이 먼저 설치돼 있어야 합니다. 1. pip install bs4간단하게 BeautfulSoup4를 설치합니다. 2. python파이썬 명령 프롬프트로 진입합니다. 3. from bs4 import BeautifulSoup파이썬 명령창에서 import 명령어 수행 시, 다음 줄에 아무런 에러가 뜨지 않으면 설치 성공입니다.
파이썬 환경변수 설정 파이썬 환경변수 설정 (Environment Variables) 1. [내컴퓨터] 우클릭 - [속성] 클릭 2. [고급시스템] 클릭 (영문은 Advanced system settings) 3. [환경변수] 클릭 (영문은 Environment Variables) 4. 아래의 [시스템 변수]에서 "Path" 선택 후 [Edit] 클릭 5. 파이썬 경로 추가. --- C:\Python27만 추가해도됨 --- 본인이 설치한 파이썬 경로에 맞게 설정[Win7]( 경로는 ; 로 구분이 됩니다. ex) c:\ ; c:\Python27 ; c:\Python27\Scripts ) [Win10]윈10은 한줄에 환경변수 경로 하나씩 적어주면 됩니다.[새로만들기] - [환경변수 경로 입력] 6. 환경변수 추가 확인CMD창을 ..