Anaconda之问题汇总
1.软件冲突
在使用conda命令安装matplotlib时,出现了大量的冲突和错误,好几页好几页的。
尝试使用了conda-forge参数,最后终于还是安装成功了。
1 | conda install -c conda-forge matplotlib |
参考文章:
【1】.ImportError: No module named ‘matplotlib’ — Using Anaconda tensorflow environment (这篇文章中有加conda-forge参数的方法安装)
【2】.Anaconda安装Tensorflow以及Matplotlib 以及错误:RuntimeError: module compiled against API version a but this v (这篇文章中,有一个安装顺序的问题)
【3】.由于软件包冲突,无法使用conda安装底图1.2.1,该如何解决?
【4】.附录C:conda相关命令
2.The following packages are not available from current channels
参考文章:
【1】.Anaconda找包,安装包时,遇到PackageNotFoundError: ‘’Package missing in current channels”
3.Your shell has not been properly configured to use ‘conda activate’
当我在windows上执行创建环境的时候,出现了这个问题。
【解决方案】
命令行执行 conda init, 然后重启命令行。
4.conda卡住
这个问题真是挺奇怪的,有时候可以,有时候就不可以,有一天可以,另外一天就不行,我真是疯了,为了解决这个问题,我尝试使用mamba,结果又是一系列的问题,结果也解决不了。
(1)去 官网下载 ,然后安装。
(2)配置环境变量
1 | C:\ProgramData\miniforge3 |
(3)重启终端
(4)使用
1 | mamba deactivate |
参考文章:
【1】.解决Anaconda3 solving environment 巨慢的方法
【2】.(Conda)Mamba 的安装和使用
【3】.记录conda和mamba的一些心得
【4】.【已解决】anaconda配环境“solving environment“卡住(linux)
【5】.【已解决】Anaconda中conda 某个包之后Solving environment: \一直转 卡住不动解决办法(图文教程)
【6】.解决IDEA 不能正确识别系统环境变量的问题
5.’mamba’ is running as a subprocess and can’t modify the parent shell
主要就是安装完 mamba ,切换虚拟环境总是报错:’mamba’ is running as a subprocess and can’t modify the parent shell.Thus you must initialize your shell before using activate and deactivate.尝试了很多方法。
1 | mamba shell init --shell cmd.exe --root-prefix=~/.local/share/mamba |
【7】.Micromamba: Cannot activate env because cannot initialize shell cmd.exe (corp env)
【8】.‘mamba‘ is running as a subprocess and can‘t modify the parent shell. 讨论来讨论去,也没有什么用
【9】. Mamba安装验证与常见问题排查指南 尝试了,解决不了问题。
