miniconda创建环境失败

2020-06-01  本文已影响0人  就是大饼

问题描述

miniconda在创建python3.6的环境的时候,连续出现两个done,就没下文了。镜像用的是中科大的,也没啥问题,网络问题排除。实际原因是因为缓存
输入

conda create -n mypython python=3.6

出现大概这样的命令,因为具体我不太记得了

Collecting package python (current_xxxx): done
Solving environment: done

镜像命令

conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
conda config --set show_channel_urls yes

解决方法

conda clean -a

*但需要注意的是,这个语句会删掉你所有的包hhh,慎用。会顾及到其他包的话,用

conda clean -t   //tar打包

似乎也可以的。

上一篇 下一篇

猜你喜欢

热点阅读