Вы можете загрузить установщик с https://www.python.org/downloads/release/python-2711/ и установить как обычно:
sudo installer -src /path/to/python.pkg -tgt /
В качестве альтернативы вы можете использовать менеджер пакетов, подобный Linux / BSD, например Homebrew , и установить из него python:
brew update
brew install python
Похоже, это ошибка. Тестовый случай:
$ cd "$(mktemp --directory)"
$ mkdir foo\ bar
$ touch foo\ bar/test
$ git init
Initialized empty Git repository in /tmp/tmp.iGmBR6y2xR/.git/
$ git status --short
?? foo bar/
$ cat >.gitignore << EOF
> *
> !foo bar
> !foo\ bar
> !"foo bar"
> "!foo bar"
> !foo bar/
> !foo\ bar/
> !"foo bar/"
> "!foo bar/"
> EOF
$ git status --short
[no output]
Обходной путь/счетчик -тест -случай:
$ cat >.gitignore << EOF
> */
> !foo\ bar/
> EOF
$ git status --short
??.gitignore
?? foo bar/