1.
MariaDB 버전
2.
Python 인터프리터 및 필요한 라이브러리 목록 및 버전
<MariaDB 버전>
MariaDB Server 11.5.2(.Rolling)
connection = mariadb.connect(
host='localhost',
user='hanshin',
password='hanshin2024',
database='user_data',
port=3306
) |
<Python 버전>
Python 3.11.7
<라이브러리>
•
pip install mariadb
•
pip install pygame
•
pip install requests
•
pip install playsound
•
pip install SpeechRecognition
혹시나 SpeechRecognition 설치가 실패된다면, pip를 upgrade 후, 실행해주세요!
•
pip install flask
•
pip install PyQt5 # This installs both PyQt5.QtCore and PyQt5.QtWidgets
•
pip install pyinstaller
•
pip install pyaudio
•
pip install pandas
Maria DB로 변경하기
공지사항
•
user_data DB 생성
CREATE DATABASE user_data;
PowerShell
복사
•
hanshin 계정 생성 및 user_data DB에 대한 권한 부여
CREATE USER 'hanshin'@'%' IDENTIFIED BY 'hanshin2024';
GRANT ALL PRIVILEGES ON user_data.* TO 'hanshin'@'%';
PowerShell
복사
•
DB Connection 코드 부분
connection = mariadb.connect(
host='localhost',
user='hanshin',
password='hanshin2024',
database='user_data',
port=3306
) |
user DB 생성하기
situations(event) DB 생성하기
Log DB 생성하기
Logs DB query
Pyinstaller로 exe만들기
공지사항
만약, python이 설치된 경로에 ‘한글명’이 포함된 경우 Error가 발생할 수 있습니다.
•
application.exe
pyinstaller -F --windowed application.py 로 application.exe를 만들어줍니다.
•
app.exe
app.py는 파일의 크기가 엄청 크므로, 다른 방식을 취해야 합니다.
1.
우선, app.spec을 아래와 같이 구성하세요.
app.spec
2.
pyinstaller app.spec 으로 app.exe를 만들어주세요.
⇒ 생각보다 시간이 오래 걸리는 작업입니다.
<오래 걸리는 부분>
•
267891 INFO: Performing binary vs. data reclassification (7437 entries)
•
1302401 INFO: Extra DLL search directories (PATH): []










