issues
search
Chromatic-Hwi
/
Practice
Practice Programing and CS
1
stars
0
forks
source link
Pyinstaller CSV 자동 이미지화, 수치 계산 exe
#6
Closed
Chromatic-Hwi
closed
1 year ago
Chromatic-Hwi
commented
1 year ago
Pyinstaller
Python 3.7.7 버전에서 원활한 작동 확인.
아나콘다나 cmd 에서 모듈 설치를 시도해봤고, 경로내 직접 설치나 권한 변경도 시도했었지만 파이썬 버전 관리가 가장 확실한 해결 방법이었음.
path 설정 이후 cmd를 통해 설치했음.
exe 빌드 과정에서 코드를 읽은 후 exe로 저장하는 과정에서는 저장에 대한 권한 오류가 발생했었는데 (맨 마지막 과정) -> window+R버튼 후 cmd 입력 다음 ctrl+shift+Enter로 관리자 권한 실행 후 pyinstaller 실행했음.
pyinstaller --onefile --icon='코드와 같은 경로에 있는 ico 파일' 코드 로 빌드.
같이 빌드된 build 폴더는 실행 파일과 같은 경로에 있어야 하지만 Dist내의 exe는 밖으로 꺼내고 Dist 폴더는 삭제해도 동작에 지장 없음.
Numpy & Pandas
리스트 내에 NaN 값이 있으면 일부 계산은 정상 처리가 되지 않음.
Pandas 설치시 Numpy는 자동으로 같이 설치됨.
Matplotlib
주피터 실행창에서는 plt.close()를 통해 결과창에 그래프가 출력되지 않도록 설정 가능. 이전에는 plt.show()가 없는데도 출력창에 결과가 나왔었음.
Python
Pickle, pkl을 사용하면 리스트, 딕셔너리도 외부 파일로 쓰기, 읽기 가능.
Pyinstaller
Numpy & Pandas
Matplotlib
Python