当前位置:网站首页>After switching the shell command line terminal (bash/zsh), CONDA cannot be used: command not found
After switching the shell command line terminal (bash/zsh), CONDA cannot be used: command not found
2022-07-25 10:30:00 【Haulyn5】
Preface
Before you leave zsh It broke down , It seems to be because of the upgrade GLIBC Lead to ohmyzsh A theme of has collapsed (locale Something went wrong. ), Then is zsh Cannot be opened , Only use bash, Knock in zsh will segment fault( If undergraduate course experiments can be so easy fault Just fine ). So uninstall and reload zsh, But it still can't be used zsh. Had to migrate back bash 了 . It took some time to find out conda It's useless …… Directly tapping the command will display command not found.
To find the , The following blog gives ideas .
Text
The reference blog is from bash Migrate to zsh, And I am the other way around , But in this blog bash The catalogue is different from mine . What is used in this article is a name bash_profile The file of , I don't have this file here , Guess yes `~/.bashrc` , So first enter zshrc
vim ~/.zshrcYou will probably find the following paragraph
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/root/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/root/miniconda3/etc/profile.d/conda.sh" ]; then
. "/root/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/root/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<conda It's very thoughtful to mark the part that belongs to you with notes , Copy this paragraph to `~/.bashrc` in .
vim ~/.bashrcthen source command .
source ~/.bashrc
You can see that after executing the command , There is (base) Of Tips , Execute at this time conda The order is as old as ever .
边栏推荐
- 4.FTP服务配置与原理
- [untitled]
- Angr(四)——angr_ctf
- Mysql5.7 master-slave database deployment (offline deployment)
- Configure FTP virtual user and access control
- Selenium waits for the occurrence of elements and the conditions under which the waiting operation can be performed
- Storage, computing, distributed storage (collection and sorting is suitable for Xiaobai)
- 复现 ASVspoof 2021 baseline RawNet2
- Angr (VIII) -- angr_ ctf
- 2.介绍部署LAMP平台+DISCUZ论坛
猜你喜欢
随机推荐
Storage, computing, distributed Virtualization (collection and sorting is suitable for Xiaobai)
When installing mysql, string the service installation failure > mysql80 startup failure
Swing component
Angr (VI) -- angr_ ctf
4.隔壁小孩都会的,各种shell符号{}[]等
Number theory -- Research on divisor
Fastdfs离线部署(图文)
Angr (VIII) -- angr_ ctf
2. Conditional statements of shell script
存储、计算、分布式计算篇(收集整理适合小白)
3、 Five operation modes of unittest test cases
多线程——静态代理模式
Pow(x,n)
3.信你能理解的!shell脚本之循环语句与函数,数组,冒泡排序
7. Shell practical gadget cut, etc
Swing的组件图标
Principle of struct2
测试计划、测试方案
搭建LNMP+DISCUZ论坛
11. Iptables firewall








