卸载 Visual Studio Code 中的 Pylance 和 Flake8

huangapple go评论123阅读模式
英文:

Uninstall Pylance and Flake8 from Visual Studio Code

问题

我已经使用PylanceFlake8一段时间了,但现在我不认为我还需要它们,因为它们给我带来了很多麻烦,因为有很多规则需要遵循。我应该如何从我的Visual Studio Code和甚至从我的电脑上卸载它们?

我知道有一种在设置中禁用它们的方法,但我更愿意直接卸载它们。

英文:

I have been using Pylance and Flake8 for a while, but now I don’t think I need them anymore, and they’re bothering me a lot since there are a lot of rules to follow. How I uninstall them from my Visual Studio Code and even from my PC?

I know there is a way to disable them in settings, but I’d rather just uninstall them.

答案1

得分: 0

以下步骤应该解决您的问题:

在Visual Studio Code中,点击窗口侧边的活动栏中的扩展图标。在扩展视图中,搜索“Pylance”和“Flake8”。

点击已安装扩展(Pylance和Flake8)旁边的齿轮图标,并从上下文菜单中选择“卸载”。

另一种方式,也是最简单的方式,如下:

pip卸载pylance
pip卸载flake8

如果您使用Conda安装了这些扩展,请运行以下命令:

conda卸载pylance
conda卸载flake8

执行适当的命令后,Pylance和Flake8将从您的计算机和Visual Studio Code环境中卸载。

英文:

The steps below should solve your problem:

In Visual Studio Code, click the extensions icon in the activity Bar on the side of the window. In the Extensions view, search for "Pylance" and "Flake8".

Click on the gear icon next to the installed extensions (Pylance and Flake8) and select "Uninstall" from the context menu.

Another way, which is the easiest way, is below.

pip uninstall pylance
pip uninstall flake8

If you used Conda to install the extensions, run the following commands:

conda uninstall pylance
conda uninstall flake8

After executing the appropriate commands, Pylance and Flake8 will be uninstalled from your PC and Visual Studio Code environment.

答案2

得分: -1

你可以使用包管理器来安装/卸载库。

如果你使用pip(Python的包安装程序),你可以在终端中像这样使用命令。

  1. 卸载Pylance

    pip uninstall pylance
    
  2. 卸载Flake8

    pip uninstall flake8
    

你可以通过使用Visual Studio Code扩展服务来禁用或卸载它:

  1. 点击左侧边栏上的扩展图标。
  2. 找到你的扩展(Pylance 和 Flake8)。
  3. 点击<kbd>卸载</kbd>按钮。
  4. 重新启动Visual Studio Code或你的计算机。

如果它仍然存在于你的Visual Studio Code中,你应该找到桌面上的本地缓存文件。

英文:

You can use a package manager to install/uninstall libraries.

If you use pip (package installer for Python), you can command like this in terminal.

  1. Uninstall Pylance

    pip uninstall pylance
    
  2. Uninstall Flake8

    pip uninstall flake8
    

You can disable or uninstall by using the Visual Studio Code extension service:

  1. Click the extension icon on the left side bar.
  2. Find out your extensions (Pylance and Flake8)
  3. Click the <kbd>Uninstall</kbd> button
  4. Reboot Visual Studio Code or your computer.

If it still exists in your Visual Studio Code, you should find the local cache files on your desktop.

huangapple
  • 本文由 发表于 2023年8月5日 10:12:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76839892.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定