Fügen Sie Conda zum Sudo -Pfad hinzu

sudo /home/anaconda/bin/python convnets.py >> output
Perfect Petrel