程序
QProcess::execute("sh gpu_ivus.sh");
#!/bin/bash
source /home/ubuntu/anaconda3/bin/activate base
python deeplabv3plus_multichannels.py --dataroot 'KeyFrames' --saveroot 'KeyAI'
报错
找不到 source
找不到 python
原因
dash不支持,需要默认sh切换为bash
解决办法
ls -l /bin/sh
sudo dpkg-reconfigure dash #选择否
ls -l /bin/sh