如何卸载Python和所有软件包 [英] How to uninstall Python and all packages

查看:138
本文介绍了如何卸载Python和所有软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望卸载Python 2.7及其连接的所有软件包.我最初是从官方网站安装Python,然后使用pip install命令安装了所有软件包.从控制面板卸载Python还会自动卸载所有软件包吗?

I wish to uninstall Python 2.7 and all packages connected to it. I initially installed Python from the official website and I installed all packages using the pip install command. Would uninstalling Python from the control panel also uninstall all packages automatically?

我想卸载Python的原因是因为我想使用Anaconda,以便能够更轻松地管理软件包,并能够同时安装Python 2和3以在它们之间来回切换.

The reason I want to uninstall Python is because I want to use Anaconda in order to be able to manage packages more easily and also be able to install both Python 2 and 3 to switch between them back and forth.

推荐答案

如果从控制面板中卸载,则应随其一起删除所有软件包.为确保在尝试使用anaconda时路径不包含旧的python,应从路径中删除Python.在Windows 10中:

If you uninstall from the control panel, it should remove all packages with it. To ensure that your path doesn't contain your old python when you try and use anaconda, you should remove Python from your path. In windows 10:

  1. 从桌面左下角找到菜单.
  2. 单击系统,然后单击高级系统设置"
  3. 在此窗口中,转到高级"选项卡,然后单击环境变量按钮.
  4. 您可以从此处使用编辑"按钮编辑路径".
  5. 确保此处没有对Python的引用.同样,所有变量都用;分隔.因此在保存之前,请确保所有语法都正确.
  6. 安装anaconda,并在安装结束时询问您是否要将其设为默认Python.说是,每当您或另一个程序要求使用Python时,它将指向anaconda.

这篇关于如何卸载Python和所有软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆