我需要比较两个基本上是列表列表的列表,找出存在于一个列表中但没有其他列表的子列表。子列表的排列也没有考虑,即['a','b'] = ['b,'a']。这两个列表是
List_1 = [['T_1','T_2'],['T_2','T_3'],['T_1','T_3']]
List_2 = [['T_1','T_2'],['T_3','T_1']]
Run Code Online (Sandbox Code Playgroud)
输出列表应为
out_list = [['T_2','T_3']]
Run Code Online (Sandbox Code Playgroud) 我已经在 linux 中使用 conda 创建了自己的环境。当我检查时conda info --envs
,它给出了一个环境列表,如
# conda environments:
#
base * /home1/sriparna/anaconda3
copy_Env_deepgo /home1/sriparna/anaconda3/envs/copy_Env_deepgo
deepgo_2 /home1/sriparna/anaconda3/envs/deepgo_2
deepgo_3 /home1/sriparna/anaconda3/envs/deepgo_3
enzy /home1/sriparna/anaconda3/envs/enzy
parth /home1/sriparna/anaconda3/envs/parth
protein_struc /home1/sriparna/anaconda3/envs/protein_struc
py2 /home1/sriparna/anaconda3/envs/py2
Run Code Online (Sandbox Code Playgroud)
但我无法激活特定环境。例如,当我尝试conda activate parth
它时显示
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 …
Run Code Online (Sandbox Code Playgroud)