Skip to content

Instantly share code, notes, and snippets.

@honzajavorek
Created July 3, 2018 16:01
Show Gist options
  • Save honzajavorek/f2afe103b91f177ab8b6fbe4cfe4da1d to your computer and use it in GitHub Desktop.
Save honzajavorek/f2afe103b91f177ab8b6fbe4cfe4da1d to your computer and use it in GitHub Desktop.

Jak zajistit, ze bude Mila pouzivat Python 3

  1. brew install python3

  2. Do ~/.bash_profile pridat nasledujici:

    function python() {
      echo "############################################################################################################################"
      echo "#  Milo, ses si jistej, ze jsi chtel python a ne python3? I ty jeden lenivej, nezanedbavej svou viru v nejnovejsi Python!  #"
      echo "############################################################################################################################"
      echo ""
      command python "$@"
    }
  3. Otevrit novy terminal nebo source ~/.bash_profile v existujicim.

  4. Zkusit jestli funguje:

    • python
    • python -c 'import antigravity'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment