Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dino committed Oct 20, 2021
1 parent 63d09ed commit 9816ab9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@ def run_command(cmd=""):
print("install vilib ...")
os.chdir('/home/pi')
if os.path.exists('/home/pi/vilib'):
# run_command('sudo rm -r vilib/')
# os.system('sudo rm -r vilib/')
os.chdir('/home/pi/vilib')
run_command('git pull')
os.system('git pull')
else:
run_command('git clone https://github.com/sunfounder/vilib.git')
os.system('git clone https://github.com/sunfounder/vilib.git')
os.chdir('/home/pi/vilib')
run_command('sudo python3 setup.py install')
os.system('sudo python3 setup.py install')


# # install mediapipe-rpi3
# print("install mediapipe-rpi3 ...")
# run_command('sudo pip3 install mediapipe-rpi3')
# os.system('sudo pip3 install mediapipe-rpi3')


#install sunfounder_io
print("install sunfounder-io")
os.chdir('/home/pi')
if os.path.exists('/home/pi/sunfounder-io'):
os.chdir('/home/pi/sunfounder-io')
run_command('sudo rm -r sunfounder-io/')
os.system('sudo rm -r sunfounder-io/')

run_command('git clone https://github.com/sunfounder/sunfounder-io.git')
os.system('git clone https://github.com/sunfounder/sunfounder-io.git')
os.chdir('/home/pi/sunfounder-io')
run_command('sudo python3 setup.py install')
os.system('sudo python3 setup.py install')

0 comments on commit 9816ab9

Please sign in to comment.