alv*_*vas 43 python uninstall pip conda miniconda
我已经安装了conda包:
$ wget http://bit.ly/miniconda
$ bash miniconda
$ conda install numpy pandas scipy matplotlib scikit-learn nltk ipython-notebook seaborn
Run Code Online (Sandbox Code Playgroud)
我想卸载它,因为它弄乱了我的点子和环境.
rth*_*rth 52
要卸载miniconda,只需删除该miniconda文件夹,
rm -r ~/miniconda/
Run Code Online (Sandbox Code Playgroud)
这不应该删除你的任何pip安装包(但你应该检查virtualenv文件夹的内容以确认).
为了避免不同的python环境之间的冲突,你可以使用miniconda.特别是,使用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
Run Code Online (Sandbox Code Playgroud)
tsv*_*iko 31
完全卸载 conda的正确方法(Anaconda / Miniconda):
使用 Anaconda-Clean 包删除所有与 conda 相关的文件和目录
conda activate your_conda_env_name
conda install anaconda-clean
anaconda-clean # add `--yes` to avoid being prompted to delete each one
Run Code Online (Sandbox Code Playgroud)
删除整个 conda 目录
rm -rf ~/miniconda3
Run Code Online (Sandbox Code Playgroud)
删除将 conda 路径添加到PATH环境变量的行
vi ~/.bashrc
# -> Search for conda and delete the lines containing it
# -> If you're not sure if the line belongs to conda, comment it instead of deleting it just to be safe
source ~/.bashrc
Run Code Online (Sandbox Code Playgroud)
删除由 Anaconda-Clean 软件包创建的备份文件夹 注意:在执行此操作之前请三思,因为之后您将无法从旧的 conda 安装中恢复任何内容!
rm -rf ~/.anaconda_backup
Run Code Online (Sandbox Code Playgroud)
参考:官方 conda 文档
小智 5
您必须在〜/ .bashrc中注释该行:
#export PATH=/home/jolth/miniconda3/bin:$PATH
Run Code Online (Sandbox Code Playgroud)
并运行:
source ~/.bashrc
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
67901 次 |
| 最近记录: |