Skip to content

Commit e651485

Browse files
committed
Apple fix
I hope it works
1 parent bd0e899 commit e651485

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

install.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Installs dependencies
2+
# Make sure to add to requirements.txt - it can be used for the standalone mode
23

34
import launch
45
import platform
@@ -57,6 +58,7 @@ def ensure(module_name, min_version=None):
5758

5859
if platform.system() == 'Darwin':
5960
ensure('pyqt6')
61+
ensure('PyOpenGL', '3.1.7')
6062

6163
# Depth Anything
6264
def get_installed_version(package: str):

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ networkx>=2.5
1919
diffusers>=0.20.1 # For Marigold
2020
pyqt5; sys_platform == 'windows'
2121
pyqt6; sys_platform != 'windows'
22+
PyOpenGL>=3.1.7; sys_platform == 'darwin'
2223
https://github.com/huchenlei/Depth-Anything/releases/download/v1.0.0/depth_anything-2024.1.22.0-py2.py3-none-any.whl

0 commit comments

Comments
 (0)