install.py
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| install.py [2025/12/20 15:05] – 46.109.187.144 | install.py [2025/12/20 15:46] (current) – 46.109.187.144 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | **Palaist: python3 install.py** | ||
| + | |||
| < | < | ||
| import sys | import sys | ||
| - | import time | ||
| import subprocess | import subprocess | ||
| Line 9: | Line 10: | ||
| command.insert(0, | command.insert(0, | ||
| subprocess.check_call(command) | subprocess.check_call(command) | ||
| - | print(f" | + | print(" |
| except subprocess.CalledProcessError: | except subprocess.CalledProcessError: | ||
| - | print(f" | + | print(" |
| print(" | print(" | ||
| run_command([" | run_command([" | ||
| - | time.sleep(1) | ||
| # --- System dependencies --- | # --- System dependencies --- | ||
| Line 21: | Line 21: | ||
| " | " | ||
| " | " | ||
| + | " | ||
| + | |||
| " | " | ||
| " | " | ||
| Line 31: | Line 33: | ||
| " | " | ||
| " | " | ||
| + | |||
| " | " | ||
| " | " | ||
| Line 37: | Line 40: | ||
| " | " | ||
| " | " | ||
| - | | + | |
| + | | ||
| + | " | ||
| + | " | ||
| + | " | ||
| ] | ] | ||
| for pkg in system_packages: | for pkg in system_packages: | ||
| - | print(f" | ||
| run_command([" | run_command([" | ||
| - | time.sleep(1) | ||
| - | # --- Some packages | + | # --- Python |
| python_pip_packages = [ | python_pip_packages = [ | ||
| " | " | ||
| Line 53: | Line 58: | ||
| ] | ] | ||
| - | print(" | + | print(" |
| for pkg in python_pip_packages: | for pkg in python_pip_packages: | ||
| - | run_command([sys.executable, | + | run_command( |
| - | | + | |
| + | ) | ||
| # --- Permissions --- | # --- Permissions --- | ||
| - | target_folder = "/ | + | target_folder = "/ |
| print(f" | print(f" | ||
| run_command([" | run_command([" | ||
| Line 66: | Line 72: | ||
| print(" | print(" | ||
| depthai_rule = ' | depthai_rule = ' | ||
| - | run_command([" | + | run_command( |
| + | | ||
| + | use_sudo=True | ||
| + | ) | ||
| run_command([" | run_command([" | ||
| run_command([" | run_command([" | ||
| - | print(" | + | print(" |
| </ | </ | ||
install.py.1766243108.txt.gz · Last modified: by 46.109.187.144 · Currently locked by: 216.73.216.181
