项目场景:
安装keras时弹出警告:
WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available.
You should consider upgrading via the ‘c:\users\86184\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip’ command.
大概的意思是有新版pip可以更新,你可以通过改路径更新pip
问题描述
当我按照提示输入时报错:
ERROR: Could not find a version that satisfies the requirement upgrade (from versions: none)
ERROR: No matching distribution found for upgrade
大概的意思是没有找到符合版本的pip
解决方案:
多打了一个空格
使用该命令即可:
python -m pip install --upgrade pip
之后使用查看版本:
pip show pip
Name: pip
Version: 22.0.4
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: distutils-sig@python.org
License: MIT
Location: c:\users\86184\appdata\local\programs\python\python39\lib\site-packages
Requires:
Required-by: