Press this to get to settings in vscode:

CRTL + ,

Type:

autopep8

In the terminal find the locations of autopep8:

find ~/ -type f -name "autopep8"

Set the fully qualified path to the location of autopep8 in vscode settings.

For me it was:

/home/a/.local/bin/autopep8

Posted @ 2019-04-18 23:52