Q1: 没发现满足需求的版本
ERROR: Could not find a version that satisfies the requirement keras-nightly~=2.5.0.dev (from tensorflow) (from versions: none)
ERROR: No matching distribution found for keras-nightly~=2.5.0.dev
按照官方文档Installation — TensorFlow 2 Object Detection API tutorial documentation安装时总是出现错误。问题出在 keras-nightly. keras-nightly
是 Keras 的每日构建版本(开发版),通常包含未正式发布的实验性代码。TensorFlow 2.5.0 在开发阶段可能依赖此版本,但正式发布后不再需要。当前 PyPI 镜像源(如清华源)可能已移除陈旧的 keras-nightly
开发版,导致安装失败。
solutions:
绕过版本2.5.0,下载清华源中的较新版本。
pip install tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple
Attention:如果在实际运行项目时,发现缺失了包,建议到同一个源进行下载。其他的源可能找不到符合需求的包。
Q2:
很笨的问题,没有进入python环境
import torch失败、import-im6.q16: not authorized ‘torch’@ error/constitute.c/WriteImage/1037. 问题的解决_not authorized `torch-CSDN博客Q3: