目录
ModuleNotFoundError: No module named ‘mmcv‘包命令pkgutil报错
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
Git 配置代理,解决 "Failed to connect to github.com port 443" 及 "Recv failure: Connection was reset" 等问题
ModuleNotFoundError: No module named ‘mmcv‘包命令pkgutil报错
解决方案:ModuleNotFoundError: No module named ‘mmcv‘包命令pkgutil报错-CSDN博客
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
解决方案:老实安装Microsoft C++ 生成工具 - Visual Studio,大概6.6G
Git 配置代理,解决 "Failed to connect to github.com port 443" 及 "Recv failure: Connection was reset" 等问题
解决方案:三种方法解决git拒绝连接问题fatal: unable to connect to git | Go 技术论坛
取消代理后就可以git clone了
git config --global http.proxy
git config --global --unset http.proxy
从源安装 mmpretrain指令:
git clone https://github.com/open-mmlab/mmpretrain.git
cd mmpretrain
pip install -U openmim && mim install -e . -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
如果要使用多模态功能,需要额外安装依赖
# Install from source
mim install -e ".[multimodal]"
# Install as a Python package
mim install "mmpretrain[multimodal]>=1.0.0rc8"
标签:教程,git,安装,set,CUDA,install,com,mmpretrain
From: https://blog.csdn.net/sinat_34770838/article/details/137070550