conda环境下安装basicsr出错解决方案

1 安装出错信息如下

pip install basicsr==1.4.2
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting basicsr==1.4.2
  Using cached basicsr-1.4.2-py3-none-any.whl
Collecting addict (from basicsr==1.4.2)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6a/00/b08f23b7d7e1e14ce01419a467b583edbb93c6cdb8654e54a9cc579cd61f/addict-2.4.0-py3-none-any.whl (3.8 kB)
Requirement already satisfied: future in /root/anaconda3/envs/ldm/lib/python3.8/site-packages (from basicsr==1.4.2) (0.18.3)
Collecting lmdb (from basicsr==1.4.2)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/03/d3/b854559b9511e21813e1542fa40cbc3d8f9a24bd76407ba05d995e3f4427/lmdb-1.4.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (298 kB)
Requirement already satisfied: numpy>=1.17 in /root/anaconda3/envs/ldm/lib/python3.8/site-packages (from basicsr==1.4.2) (1.24.0)
Requirement already satisfied: opencv-python in /root/anaconda3/envs/ldm/lib/python3.8/site-packages (from basicsr==1.4.2) (4.1.2.30)
Requirement already satisfied: Pillow in /root/anaconda3/envs/ldm/lib/python3.8/site-packages (from basicsr==1.4.2) (9.5.0)
Requirement already satisfied: pyyaml in /root/anaconda3/envs/ldm/lib/python3.8/site-packages (from basicsr==1.4.2) (6.0)
Requirement already satisfied: requests in /root/anaconda3/envs/ldm/lib/python3.8/site-packages (from basicsr==1.4.2) (2.29.0)
Requirement already satisfied: scikit-image in /root/anaconda3/envs/ldm/lib/python3.8/site-packages (from basicsr==1.4.2) (0.18.1)
Requirement already satisfied: scipy in /root/anaconda3/envs/ldm/lib/python3.8/site-packages (from basicsr==1.4.2) (1.9.1)
INFO: pip is looking at multiple versions of basicsr to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement tb-nightly (from basicsr) (from versions: none)
ERROR: No matching distribution found for tb-nightly

2 问题分析

ERROR: Could not find a version that satisfies the requirement tb-nightly (from basicsr) (from versions: none)
ERROR: No matching distribution found for tb-nightly

通过pip直接安装tb-nightly,同样显示找不到这个包

pip install tb-nightly
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement tb-nightly (from versions: none)
ERROR: No matching distribution found for tb-nightly

所以得出结论,在tsinghua镜像库中没有tb-nightly。

3 问题解决

将镜像库配置为aliyun的镜像库

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
Writing to /root/.config/pip/pip.conf

再次运行安装basicsr,最终显示安装成功,问题解决。

pip install basicsr==1.4.2
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting basicsr==1.4.2
Installing collected packages: lmdb, addict, tomli, platformdirs, yapf, tb-nightly, basicsr
Successfully installed addict-2.4.0 basicsr-1.4.2 lmdb-1.4.1 platformdirs-3.8.1 tb-nightly-2.14.0a20230709 tomli-2.0.1 yapf-0.40.1

备注:tb-nightly 是一个 Python 包,它是 TensorFlow 的 TensorBoard 的夜间版本(nightly version)。TensorBoard 是一个用于可视化和监控 TensorFlow 训练过程和模型的工具。TensorBoard 提供了一组交互式的仪表板,可以显示训练过程中的指标、损失函数、模型结构图、梯度直方图等信息。它可以帮助您理解和调试 TensorFlow 模型,以及优化模型的性能。

你可能感兴趣的:(AI运行环境,conda,人工智能,basicsr)