博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
终端使用conda激活环境时报错解决方法
阅读量:3919 次
发布时间:2019-05-23

本文共 1000 字,大约阅读时间需要 3 分钟。

错误情况

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.If your shell is Bash or a Bourne variant, enable conda for the current user with    $ echo ". /home/laoer/anaconda3/etc/profile.d/conda.sh" >> ~/.bashrcor, for all users, enable conda with    $ sudo ln -s /home/laoer/anaconda3/etc/profile.d/conda.sh /etc/profile.d/conda.shThe options above will permanently enable the 'conda' command, but they do NOTput conda's base (root) environment on PATH.  To do so, run    $ conda activatein your terminal, or to put the base environment on PATH permanently, run    $ echo "conda activate" >> ~/.bashrcPrevious to conda 4.4, the recommended way to activate conda was to modify PATH inyour ~/.bashrc file.  You should manually remove the line that looks like    export PATH="/home/laoer/anaconda3/bin:$PATH"^^^ The above line should NO LONGER be in your ~/.bashrc file! ^^^

这里再按照上面提示中进行处理后还是没有效果,经过查找后发现其实仅仅需要

# 激活环境source activate# 退出环境source deactivate

然后正常激活就可以

转载地址:http://fmhrn.baihongyu.com/

你可能感兴趣的文章
剑指 Offer 31. 栈的压入、弹出序列
查看>>
剑指 Offer 32 - I. 从上到下打印二叉树
查看>>
剑指 Offer 32 - III. 从上到下打印二叉树 III
查看>>
剑指 Offer 33. 二叉搜索树的后序遍历序列
查看>>
模式18.桥接模式-java
查看>>
剑指 Offer 34. 二叉树中和为某一值的路径
查看>>
剑指 Offer 35. 复杂链表的复制
查看>>
剑指 Offer 36. 二叉搜索树与双向链表
查看>>
剑指 Offer 38. 字符串的排列
查看>>
剑指 Offer 40. 最小的k个数
查看>>
剑指 Offer 41. 数据流中的中位数
查看>>
模式19.命令模式-Java
查看>>
模式20.职责链模式-Java
查看>>
剑指 Offer 45. 把数组排成最小的数
查看>>
模式18.桥接模式-Java
查看>>
模式21.中介者模式-Java
查看>>
剑指 Offer 46. 把数字翻译成字符串
查看>>
剑指 Offer 48. 最长不含重复字符的子字符串
查看>>
剑指 Offer 49. 丑数
查看>>
剑指 Offer 50. 第一个只出现一次的字符
查看>>