stockGod is a school project that we are making, it uses Linear Regression as a model algorithm and Google's Stock Price as its Dataset.
- Install python and anacoda
- Install dependencies
- create environment activate your environment
conda create --name yourEnvName
conda activate yourEnvName
- install pandas, scikit-learn, matplotlib, pyqt5 and pickle
conda install pandas
conda insta scikit-learn
pip install matplotlib
pip install pyqt5
pip install pickle
- run it on your machine
run app.py file with your python interpreter
make sure your environment is activated
- install pyinstaller
pip install pyinstaller
- create package folder named 'package' move app.py, StockGod.py and trained_model.pkl into it. it is not necessary but to make your repo clean and not to track that huge executable file you gonna create, you better not skip this step
- change your terminal directory and run the following commands
pyinstaller --name=G-Stock --onefile app.py
- Edit the spec file only hiddenimports list like the following
a = Analysis(['app.py'],
hiddenimports=['sklearn', 'pickle', 'pandas', 'matplotlib', 'PyQt5'])
- run this command on your current terminal
pyinstaller G-Stock.spec
after the command finish executing you will have your executable file in /dist file in your package folder.
Enjoy Using It If it works, BTW it works on my machine 😜 you get it.