Skip to content

Commit 992d2b4

Browse files
committed
No need for PyQt5 on platforms other than Windows
1 parent a3373aa commit 992d2b4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

install.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import launch
2+
import platform
23

34
if not launch.is_installed("timm"): #0.6.7
45
launch.run_pip("install --force-reinstall timm==0.6.12", "timm requirement for depthmap script")
@@ -24,6 +25,7 @@
2425
launch.run_pip("install imageio-ffmpeg", "imageio-ffmpeg requirement for depthmap script")
2526
if not launch.is_installed("networkx"):
2627
launch.run_pip("install install networkx==2.5", "networkx requirement for depthmap script")
27-
if not launch.is_installed("pyqt5"):
28-
launch.run_pip("install pyqt5", "pyqt5 requirement for depthmap script")
28+
if platform.system() == 'Windows':
29+
if not launch.is_installed("pyqt5"):
30+
launch.run_pip("install pyqt5", "pyqt5 requirement for depthmap script")
2931

0 commit comments

Comments
 (0)