conda init后需要重开终端,不然一键复制会导致后续pip install会安装错环境
还是报错
ImportError: cannot import name 'AutoRegister' from 'class_registry' (/opt/conda/envs/mindsearch/lib/python3.10/site-packages/class_registry/__init__.py)
pip install --upgrade class_registry
- 部署到 HuggingFace Space
打开Setting------Access token(记得里面的全勾上,不然没权限)
cd /workspaces/codespaces-blank
要进入仓库
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
1.报错:fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
解决: git init
2.报错:error: No such remote 'space'
解决:git remote -v #如果没有任何反应表示需要添加
git remote add space https://huggingface.co/spaces/<你的名字>/<仓库名称>
hugging face成果