英文:
Uninstall Pylance and Flake8 from Visual Studio Code
问题
我已经使用Pylance和Flake8一段时间了,但现在我不认为我还需要它们,因为它们给我带来了很多麻烦,因为有很多规则需要遵循。我应该如何从我的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的包安装程序),你可以在终端中像这样使用命令。
你可以通过使用Visual Studio Code扩展服务来禁用或卸载它:
- 点击左侧边栏上的扩展图标。
- 找到你的扩展(Pylance 和 Flake8)。
- 点击<kbd>卸载</kbd>按钮。
- 重新启动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.
You can disable or uninstall by using the Visual Studio Code extension service:
- Click the extension icon on the left side bar.
- Find out your extensions (Pylance and Flake8)
- Click the <kbd>Uninstall</kbd> button
- 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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论