1.9 EasyVolcap
约 250 字小于 1 分钟
2025-04-20
在我多次尝试后,以下的环境版本是可以在我的机器上安装好大部分重要依赖的(目前还有 imgui-bundle 没安装好😭,发现其需要 python3.10,暂时先不想重新更改 python 版本了,之后要用到再说)
python=3.9
、cuda=12.1
、pytorch==2.1.0
# Prepare conda environment
conda install -n base mamba -y -c conda-forge
mamba create -n 4k4d "python=3.9" -y
conda activate 4k4d
# Install pytorch
mamba install pytorch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 pytorch-cuda=12.1 -c pytorch -c nvidia
# Install pip dependencies
cat requirements.txt | sed -e '/^\s*-.*$/d' -e '/^\s*#.*$/d' -e '/^\s*$/d' | awk '{split($0, a, "#"); if (length(a) > 1) print a[1]; else print $0;}' | awk '{split($0, a, "@"); if (length(a) > 1) print a[2]; else print $0;}' | xargs -n 1 pip install
cat requirements-devel.txt | sed -e '/^\s*-.*$/d' -e '/^\s*#.*$/d' -e '/^\s*$/d' | awk '{split($0, a, "#"); if (length(a) > 1) print a[1]; else print $0;}' | awk '{split($0, a, "@"); if (length(a) > 1) print a[2]; else print $0;}' | xargs -n 1 pip install # use this for full dependencies
# Register EasyVolcp for imports
pip install -e . --no-build-isolation --no-deps