Skip to content

kaleabAlemayehu/stockG

 
 

Repository files navigation

stockGod

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.

to run it on your machine follow this steps.

  1. Install python and anacoda
  1. 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
  1. run it on your machine

run app.py file with your python interpreter

Bundling into executable

make sure your environment is activated

  1. install pyinstaller
pip install pyinstaller
  1. 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
  2. change your terminal directory and run the following commands
pyinstaller --name=G-Stock --onefile app.py
  1. Edit the spec file only hiddenimports list like the following
a = Analysis(['app.py'],
             hiddenimports=['sklearn', 'pickle', 'pandas', 'matplotlib', 'PyQt5'])
  1. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%