This repository was archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Install guide
drugsosos edited this page Jun 27, 2022
·
7 revisions
-
Python 3.10
If you want links / installation guide - it's down below
-
Two (2) hands 🤲
Just kiddin', they are neglectable 🐸
-
Python
If you have it already, just skip this part
How to install Python 3.10
-
Mac OS
-
Check that Brew is installed
If not, install it via command below
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
If Brew is installed, run this
brew install python@3.10
-
-
Windows
-
If you have Chocolatey installed
choco install python -
And that if you don't
Open link below and click on the first one if the stable releases
https://www.python.org/downloads/windows/
-
-
Debian based distros
sudo apt update && sudo apt upgradesudo apt install wget build-essential libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-devwget https://www.python.org/ftp/python/3.10.2/Python-3.10.2.tgztar xzf Python-3.10.2.tgzcd Python-3.10.2./configure --enable-optimizationsmake altinstall -
Ubuntu (duh)
sudo add-apt-repository ppa:deadsnakes/ppasudo apt updatesudo apt install python3.10 -
Arch/Manjaro
sudo pacman -S python -
Alpine
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/main python3
-
-
Installing Python dependencies
-
Open repository folder in terminal
cd /path/to/repo/ -
Make sure you have Pip installed
You can skip this, but if you want to...
How to check if Pip is installed?
pip3 --versionOutput:
pip 22.0.4 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)How to install Pip?
python3 -m ensurepip
-
-
Install Poetry
pip3 install poetryor
python3 -m pip install poetry -
Install dependencies
poetry install -
Set up .env config
- Copy .env.example
- Remove .example from it's name
- Enter CLIENT_ID and CLIENT_SECRET (where to get them?)
- Change other settings if you want to
-
Run script
poetry run python main.py