简体   繁体   English

您正在使用 pip 版本 8.1.1,但是版本 21.2.3 可用。 您应该考虑通过“pip install --upgrade pip”命令进行升级

[英]You are using pip version 8.1.1, however version 21.2.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command

I am trying to get started with python on VS Code but I keep getting this error when I want to install the matplotlib library.我正在尝试在 VS Code 上开始使用 python,但是当我想安装 matplotlib 库时,我一直收到此错误。

在此处输入图像描述

考虑使用--user选项或检查权限。

pip install -U --upgrade pip

Three things to do:要做的三件事:

  1. Run this in your bash terminal在你的 bash 终端中运行它

python3 pip install --upgrade pip

  1. Configure your VS Code environment for python 3.x为 python 3.x 配置 VS Code 环境

  2. Run your file using python3 [filename.py]使用python3 [filename.py]运行你的文件

如果上述建议失败,您应该尝试:

pip install --upgrade pip  

我尝试了很多不同的,但下面的一个对我有用

pip3 install --upgrade pip --user

I added the folder than tried pip install --upgrade pip and it worked.我添加了文件夹而不是尝试 pip install --upgrade pip 并且它有效。 You may have to show your hidden folders to follow the path.您可能必须显示隐藏文件夹才能跟随路径。

Python was not found;未找到 Python; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.在没有 arguments 的情况下运行以从 Microsoft Store 安装,或从“设置”>“管理应用程序执行别名”中禁用此快捷方式。 To fix this problem, I'm trying to install it using this command: python -m pip install --upgrade pip setuptools virtualenv)为了解决这个问题,我尝试使用以下命令安装它:python -m pip install --upgrade pip setuptools virtualenv)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM