conda not found in ubutun的解决办法

export PATH="/root/anaconda3/bin"

conda --version

conda command not found

参考链接:https://blog.csdn.net/H_O_W_E/article/details/78494131

基本解决办法

1, 确认.bashrc这里有添加运行路径:

sudo gedit ~/.bashrc

最后一行加上

export PATH="/home/howard/anaconda3/bin:$PATH"

特别说明:用户名和anaconda版本要根据你自己实际情况填写

2. 确认profile都添加路径:

sudo gedit /etc/profile

最后一行加上

export PATH="/home/howard/anaconda3/bin:$PATH"

还有一步确保路径生效:

source /etc/profile

遇到问题:root cannot open dislay

you do not have the permission to view the contents of root

我点开root的属性查看的,上面下了,只有create或者delete file的权限,只有owner才能更改权限。

在ubutun系统中添加环境变量:

# 加到PATH末尾export PATH=$PATH:/path/to/your/dir

#加到PATH开头export PATH=/path/to/your/dir:$PATH

参考网站:

https://blog.csdn.net/White_Idiot/article/details/78253004

最后用直接添加环境变量的办法解决了!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容