Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS437Lab1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
klieu2
CS437Lab1
Commits
3b608c91
Commit
3b608c91
authored
1 year ago
by
Devin
Browse files
Options
Downloads
Patches
Plain Diff
fix install opencv error
parent
8473a6cf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+4
-4
4 additions, 4 deletions
setup.py
with
4 additions
and
4 deletions
setup.py
+
4
−
4
View file @
3b608c91
...
@@ -49,6 +49,10 @@ for x in range(1,4):
...
@@ -49,6 +49,10 @@ for x in range(1,4):
if
os
.
system
(
"
sudo apt-get install -y i2c-tools
"
)
==
0
:
if
os
.
system
(
"
sudo apt-get install -y i2c-tools
"
)
==
0
:
break
break
for
x
in
range
(
1
,
4
):
if
os
.
system
(
"
sudo apt-get install -y python3-opencv
"
)
==
0
:
break
for
x
in
range
(
1
,
4
):
for
x
in
range
(
1
,
4
):
if
os
.
system
(
"
sudo pip3 install adafruit-pca9685
"
)
==
0
:
if
os
.
system
(
"
sudo pip3 install adafruit-pca9685
"
)
==
0
:
break
break
...
@@ -87,10 +91,6 @@ for x in range(1,4):
...
@@ -87,10 +91,6 @@ for x in range(1,4):
if
os
.
system
(
"
sudo pip3 install numpy
"
)
==
0
:
if
os
.
system
(
"
sudo pip3 install numpy
"
)
==
0
:
break
break
for
x
in
range
(
1
,
4
):
if
os
.
system
(
"
sudo pip3 install opencv-contrib-python==3.4.3.18
"
)
==
0
:
break
for
x
in
range
(
1
,
4
):
for
x
in
range
(
1
,
4
):
if
os
.
system
(
"
sudo apt-get -y install libqtgui4 libhdf5-dev libhdf5-serial-dev libatlas-base-dev libjasper-dev libqt4-test
"
)
==
0
:
if
os
.
system
(
"
sudo apt-get -y install libqtgui4 libhdf5-dev libhdf5-serial-dev libatlas-base-dev libjasper-dev libqt4-test
"
)
==
0
:
break
break
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment