python - 如何卸载 miniconda ? Python

标签 python pip uninstallation conda miniconda

我已经安装了 conda 包:

$ wget http://bit.ly/miniconda
$ bash miniconda
$ conda install numpy pandas scipy matplotlib scikit-learn nltk ipython-notebook seaborn

我想卸载它,因为它弄乱了我的 pip 数和环境。

  • 如何完全卸载 conda?
  • 它还会卸载我的 pip 托管软件包吗?如果是这样,有没有办法在不卸载 pip 管理的包的情况下安全卸载 conda?

最佳答案

为了uninstall miniconda ,只需删除 miniconda 文件夹,

rm -r ~/miniconda/

至于避免不同Python环境之间的冲突,可以使用虚拟环境。特别是,对于 Miniconda,可以使用以下工作流程,

$ wget https://repo.continuum.io/miniconda/Miniconda3-3.7.0-Linux-x86_64.sh -O ~/miniconda.sh
$ bash miniconda
$ conda env remove --yes -n new_env    # remove the environement new_env if it exists (optional)
$ conda create --yes -n new_env pip numpy pandas scipy matplotlib scikit-learn nltk ipython-notebook seaborn python=2
$ activate new_env
$ # pip install modules if needed, run python scripts, etc
  # everything will be installed in the new_env
  # located in ~/miniconda/envs/new_env
$ deactivate

关于python - 如何卸载 miniconda ? Python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29596350/

相关文章:

windows - 通过批处理文件卸载驱动程序

python - 如何在 Django Orm 中获取每个组的最新 n 条记录

python - 从右开始累计

python - 对 pandas 中的分组应用操作

python - 使用 pip 安装时禁用 ssl 证书验证

python - 无法使用 pip 搜索 python 包 pmock

python - 名称错误 : name 'install' is not defined when installing packages using pip

xcode - 卸载 macOS 应用程序

Python __str__ 和列表

powershell - 卸载脚本未正确执行