看了下这代码是清华大佬写的,代码链接附上:
https://github.com/zhangkai0425/mipnerf-360
创建虚拟环境
conda create -n mipnerf360 python=3.7
创建好虚拟环境之后下载需要的环境依赖
conda activate mipnerf360
pip install -r requirements.txt
报找不到该文件的错误,输入以下代码即可(原因是txt在env包下面)
cd env
pip install -r requirements.txt
此时下载过程中又出现错误(读取超时)
socket.timeout: The read operation timed out
During handling of the above exception, another exception occurred:
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.
更新pip版本看看
pip --version 查看pip版本
pip install --upgrade pip 更新pip版本
可以下载了,但又出现另外的问题
ERROR: Could not find a version that satisfies the requirement certifi==2021.10.8 (from versions: none)
ERROR: No matching distribution found for certifi==2021.10.8
找不到相应的版本,此时可能是源的问题
添加国内镜像
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple添加镜像
pip config list 查询镜像
pip <