antonella …/a_project master ? v2.7.11 21:02
pip install "fastapi[standard]"
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement fastapi[standard] (from versions: none)
ERROR: No matching distribution found for fastapi[standard]\
为什么我在尝试安装 FastAPI 时收到此错误?我正在关注文档。
阅读诊断书。
Python 2.7 已于 2020 年 1 月 1 日结束生命。请升级您的 Python,因为 Python 2.7 不再维护。 pip 21.0 将于 2021 年 1 月放弃对 Python 2.7 的支持。
您尝试从 pypi.org 获取 FastAPI 经历了
pip
,
不再支持该操作。
建议您更新至 版本 3.12.