Skip to content

Commit

Permalink
3.4.5 - linux install
Browse files Browse the repository at this point in the history
  • Loading branch information
BBC-Esq authored Feb 13, 2024
1 parent 4accad9 commit 4d8e845
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/setup_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
if sys.version_info.major != 3 or sys.version_info.minor not in [10, 11]:
print("Only Python 3.10 or 3.11 are supported.")
sys.exit(1)


subprocess.run(['python', '-m', 'pip', 'install', '--upgrade', 'pip'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

def is_package_installed(package_name):
result = subprocess.run(['dpkg', '-l', package_name], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return result.returncode == 0
Expand Down

0 comments on commit 4d8e845

Please sign in to comment.