Skip to content

Readme: update python to 3.11 #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ You need to install Python, that can be done [here](https://www.python.org)
py -3 -m pip install -r requirements.txt

# Unix
python3.8 -m pip install -r requirements.txt
python3.11 -m pip install -r requirements.txt
```

#### Or this can be done using android with unrooted Termux
Expand Down
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@
except ImportError: # If it chould not be installed
# Tell the user it has not been installed and how to install it
input(
f"Module discord_webhook not installed, to install run '{'py -3' if os.name == 'nt' else 'python3.8'} -m pip install discord_webhook'\nYou can ignore this error if you aren't going to use a webhook.\nPress enter to continue.")
f"Module discord_webhook not installed, to install run '{'py -3' if os.name == 'nt' else 'python3.11'} -m pip install discord_webhook'\nYou can ignore this error if you aren't going to use a webhook.\nPress enter to continue.")
USE_WEBHOOK = False
try: # Setup try statement to catch the error
import requests # Try to import requests
except ImportError: # If it has not been installed
# Tell the user it has not been installed and how to install it
input(
f"Module requests not installed, to install run '{'py -3' if os.name == 'nt' else 'python3.8'} -m pip install requests'\nPress enter to exit")
f"Module requests not installed, to install run '{'py -3' if os.name == 'nt' else 'python3.11'} -m pip install requests'\nPress enter to exit")
exit() # Exit the program
try: # Setup try statement to catch the error
import numpy # Try to import requests
except ImportError: # If it has not been installed
# Tell the user it has not been installed and how to install it
input(
f"Module numpy not installed, to install run '{'py -3' if os.name == 'nt' else 'python3.8'} -m pip install numpy'\nPress enter to exit")
f"Module numpy not installed, to install run '{'py -3' if os.name == 'nt' else 'python3.11'} -m pip install numpy'\nPress enter to exit")
exit() # Exit the program

# check if user is connected to internet
Expand Down