Przeglądaj źródła

feat: 添加 macOS 安装步骤和依赖要求文件

zhch158_admin 3 miesięcy temu
rodzic
commit
722886cc31
2 zmienionych plików z 15 dodań i 0 usunięć
  1. 0 0
      zhch/requirements-macos.txt
  2. 15 0
      zhch/study-notes.md

+ 0 - 0
requirements-macos.txt → zhch/requirements-macos.txt


+ 15 - 0
zhch/study-notes.md

@@ -60,6 +60,21 @@ python -c "import torch; print(torch.cuda.is_available()); print(torch.cuda.devi
 ```
 
 
+# MAC 安装
+```
+cd dots.ocr
+conda activate py312
+
+uv pip install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 
+
+# 跳过依赖安装
+uv pip install -e . --no-deps
+
+# 手动安装兼容的依赖
+uv pip install -r zhch/requirements-macos.txt
+
+```
+
 # 设置launch.json
 ```json
 	"configurations": [