Exception('No compatible shell found!') () while use conda to install dolfinx0.6.0

I use the following command to install dolfinx:

conda create -n fenics python==3.10.8
conda activate fenics
conda install -c conda-forge fenics-dolfinx mpich pyvista

but I get this exception after downloading and extracing packages and I can’t import dolfinx:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Rolling back transaction: done

Exception('No compatible shell found!')

In addition,I try it on Centos7.

I solved this exception after adding export PATH=$PATH:$HOME/bin:/sbin:/usr/bin:/usr/sbin and export PATH=/home/jzz/anaconda3/bin:PATH into /etc/profile.But I don’t sure which works.