0

I installed YAPF formatter for Python code. Installation was successfull, no errors. Python 2.7.12

pip install yapf

Can't figure out how to run it: when run yapf -h, I get error 'unknown command'. Same when run python yapf -d file.py

Output of test commands:

$ type -a pip yapf
pip is /usr/bin/pip
bash: type: yapf: not found

$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

$ ls -l {~/.,/usr/}local/bin/yapf
ls: cannot access '/usr/local/bin/yapf': No such file or directory
-rwxrwxr-x 1 username username 213 Jul 25 00:17 /home/username/.local/bin/yapf
minto
  • 831

0 Answers0