Skip to content

Commit d52db39

Browse files
committed
Fix sudden HomeBrew 'python not installed' error
1 parent e979d0a commit d52db39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ before_install:
243243
PY_CMD=python$PYTHON
244244
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
245245
if [ "$PY" = "3" ]; then
246-
brew update && brew unlink python@2 && brew upgrade python
246+
brew update && brew unlink python@2 && brew upgrade python || brew install python
247247
else
248248
curl -fsSL https://bootstrap.pypa.io/get-pip.py | $PY_CMD - --user
249249
fi

0 commit comments

Comments
 (0)