Skip to content
Browse files

Add the option to configure with python3 (#646)

In macOS, catalina by default ships python 3.7 already (through XCode).
As such I expect many people to use python 3.7 with tensorflow.
For that I think it makes sense to allow configure with python3 thorough

This PR add the optional argument for to take python3 (instead of default python).

Signed-off-by: Yong Tang <>
  • Loading branch information
yongtang committed Nov 17, 2019
1 parent e75d306 commit 98b7375b4c67e9805a1ca9f1a974846ff4de671a
Showing with 9 additions and 3 deletions.
  1. +9 −3
@@ -15,9 +15,15 @@
# ==============================================================================

rm -f .bazelrc
if python -c "import tensorflow as tf" &> /dev/null; then

if [[ "$#" -gt 0 ]]; then

if $PYTHON -c "import tensorflow as tf" &> /dev/null; then
echo 'using installed tensorflow'
python -m pip install $(python --package-version)
$PYTHON -m pip install $(python --package-version)
python third_party/tf/
$PYTHON third_party/tf/

0 comments on commit 98b7375

Please sign in to comment.
You can’t perform that action at this time.