创建激活环境失败
root@*************:~# conda activate lavt
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- fish
- tcsh
- xonsh
- zsh
- powershell
See 'conda init --help' for more information and options.
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
解决方案
# 重新进入虚拟环境
source activate
# 退出虚拟环境
conda deactivate
报错:_pickle.UnpicklingError: pickle data was truncated
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 8186 (char 8185)
查找报错原因,发现是ssh传输文件时出现问题,重新上传对应文件即可。