一、原因之一: python路径未指向虚拟路径。 二、对应解决办法: 将虚拟环境路径添加到 .bashrc文件内,更新 .bashrc文件。 export PATH="XXX/anaconda3/envs/XXX/bin:$PATH" source ~/.bashrc