Check if Python version is sufficient
(self)
| 44 | } |
| 45 | |
| 46 | def check_python_version(self): |
| 47 | """Check if Python version is sufficient""" |
| 48 | if sys.version_info < (3, 6): |
| 49 | print(f"{Colors.RED}[!] Python 3.6 or higher is required{Colors.RESET}") |
| 50 | return False |
| 51 | print(f"{Colors.GREEN}[+] Python {sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro} detected{Colors.RESET}") |
| 52 | return True |
| 53 | |
| 54 | def is_package_installed(self, package_name): |
| 55 | """Check if a package is installed""" |
no test coverage detected