git clone https://github.com/ConnorAtmos/Stock_Analyzer <project_name>
cd <project_name> && rm -rf .git
python3 structure_builder.py
You should then modify info.py. This file contains all the information about your project.
Conda is a package manager for python. It is used to install python packages and conda packages.
cd ~
wget [conda_install_link]
wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh
bash [conda_file]
bash Anaconda3-2022.05-Linux-x86_64.sh
conda update conda
conda config --add channels conda-forge
This is for creating a new conda environment.
conda create --name [project_name]
conda create --name Stock_Analyzer
source ~/.bashrc
This is for installing python packages and conda packages.
cd [project_dir]
cd /home/connor/Stock_Analyzer
conda activate [project_name]
conda activate Stock_Analyzer
pip install -r [requirements_file] && conda install --file [conda_requirements_file] && conda install -c conda-forge --file [conda_forge_requirements_file]
pip install -r /home/connor/Stock_Analyzer/requirements/requirements.txt && conda install --file /home/connor/Stock_Analyzer/requirements/conda_requirements.txt && conda install -c conda-forge --file /home/connor/Stock_Analyzer/requirements/conda_forge_requirements.txt
[No apt-get requirements]
A service is a program that runs in the background. This is useful for running a program that you want to run all the time, such as a web server.
sudo mv [service_path] [service_moved_path]
sudo mv /home/connor/Stock_Analyzer/storage/Stock_Analyzer.service /etc/systemd/system/Stock_Analyzer.service
sudo systemctl daemon-reload
sudo systemctl enable [service_name]
sudo systemctl enable Stock_Analyzer.service
sudo systemctl restart [service_name]
sudo systemctl restart Stock_Analyzer.service
sudo systemctl status [service_name]
sudo systemctl status Stock_Analyzer.service
To stop the service, run:
sudo systemctl stop [service_name]
sudo systemctl stop Stock_Analyzer.service
To disable the service, run:
sudo systemctl disable [service_name
sudo systemctl disable Stock_Analyzer.service
To view output of service easier:
journalctl --unit=[service_name] -n 100 --no-pager
journalctl --unit=Stock_Analyzer.service -n 100 --no-pager
In order to get selenium to work, you must install Chrome.
sudo apt-get update
sudo apt-get upgrade
sudo apt install wget
cd ~
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
Whenever prompted, type y and press enter.
You are done! Now you can use selenium with chrome.
This is for removing the conda environment.
conda env remove --name [project_name]
conda env remove --name Stock_Analyzer
source ~/.bashrc
This is for uninstalling and removing the service.
sudo systemctl disable [service_name]
sudo systemctl disable Stock_Analyzer.service
sudo systemctl stop [service_name]
sudo systemctl stop Stock_Analyzer.service
sudo rm [service_moved_path]
sudo rm /etc/systemd/system/Stock_Analyzer.service