Issue 1:
I am pretty sure this is not a duplicate of #132, and also not a duplicate of #171, I think.

The output of the build commands is below, folded in a <details> tab so as to not clutter up the post.

_ _ __ __
| | / \ \ \/ /
_ | |/ _ \ \ /
| |_| / ___ \/ \
\___/_/ \/_/\_\

Bazel binary path: ./bazel-0.19.2-darwin-x86_64

Python binary path: /Users/ericmjl/anaconda/envs/mpnn/bin/python

MKL-DNN enabled: yes

-march=native: no

CUDA enabled: no

Building XLA and installing it in the jaxlib source tree...

INFO: Analysed target //build:install_xla_in_source_tree (0 packages loaded, 0 targets configured).

INFO: Found 1 target...

ERROR: /private/var/tmp/_bazel_ericmjl/719374c0ec5e322f5961145356fcba5a/external/local_config_python/BUILD:39:1: Executing genrule @local_config_python//:python_include failed (Exit 1) bash failed: error executing command

(cd /private/var/tmp/_bazel_ericmjl/719374c0ec5e322f5961145356fcba5a/execroot/main &&

exec env -

CUDA_TOOLKIT_PATH=/usr/local/cuda

CUDNN_INSTALL_PATH=/usr/local/cuda

PATH=/Users/ericmjl/anaconda/envs/mpnn/bin:/usr/local/opt/curl/bin:/opt/local/bin:/opt/local/sbin:/Users/ericmjl/anaconda/bin:/usr/local/cuda-9.2/bin:/Users/ericmjl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Tex:/Users/ericmjl/pypy/bin:/usr/local/Cellar/pypy3/5.9.0/bin:/usr/local/bin

PYTHON_BIN_PATH=/Users/ericmjl/anaconda/envs/mpnn/bin/python

TF_NEED_CUDA=0

/bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh;

cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/Python-ast.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/Python-ast.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/Python.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/Python.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/abstract.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/abstract.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/accu.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/accu.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/asdl.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/asdl.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/ast.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/ast.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/bitset.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/bitset.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/bltinmodule.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/bltinmodule.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/boolobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/boolobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/bytearrayobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/bytearrayobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/bytes_methods.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/bytes_methods.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/bytesobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/bytesobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/cellobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/cellobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/ceval.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/ceval.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/classobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/classobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/code.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/code.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/codecs.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/codecs.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/compile.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/compile.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/complexobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/complexobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/datetime.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/datetime.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/descrobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/descrobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/dictobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/dictobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/dtoa.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/dtoa.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/dynamic_annotations.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/dynamic_annotations.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/enumobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/enumobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/errcode.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/errcode.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/eval.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/eval.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/fileobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/fileobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/fileutils.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/fileutils.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/floatobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/floatobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/frameobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/frameobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/funcobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/funcobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/genobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/genobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/graminit.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/graminit.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/grammar.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/grammar.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/import.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/import.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/intrcheck.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/intrcheck.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/iterobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/iterobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/listobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/listobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/longintrepr.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/longintrepr.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/longobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/longobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/marshal.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/marshal.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/memoryobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/memoryobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/metagrammar.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/metagrammar.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/methodobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/methodobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/modsupport.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/modsupport.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/moduleobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/moduleobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/namespaceobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/namespaceobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/node.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/node.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/object.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/object.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/objimpl.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/objimpl.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/odictobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/odictobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/opcode.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/opcode.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/osdefs.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/osdefs.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/osmodule.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/osmodule.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/parsetok.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/parsetok.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/patchlevel.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/patchlevel.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pgen.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pgen.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pgenheaders.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pgenheaders.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/py_curses.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/py_curses.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyarena.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyarena.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyatomic.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyatomic.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pycapsule.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pycapsule.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyconfig.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyconfig.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyctype.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyctype.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pydebug.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pydebug.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pydtrace.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pydtrace.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyerrors.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyerrors.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyexpat.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyexpat.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyfpe.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyfpe.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pygetopt.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pygetopt.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyhash.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyhash.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pylifecycle.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pylifecycle.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pymacconfig.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pymacconfig.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pymacro.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pymacro.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pymath.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pymath.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pymem.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pymem.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyport.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyport.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pystate.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pystate.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pystrcmp.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pystrcmp.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pystrhex.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pystrhex.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pystrtod.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pystrtod.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pythonrun.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pythonrun.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pythread.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pythread.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pytime.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pytime.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/rangeobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/rangeobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/setobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/setobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/sip.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/sip.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/sliceobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/sliceobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/structmember.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/structmember.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/structseq.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/structseq.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/symtable.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/symtable.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/sysmodule.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/sysmodule.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/token.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/token.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/traceback.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/traceback.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/tupleobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/tupleobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/typeslots.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/typeslots.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/ucnhash.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/ucnhash.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/unicodeobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/unicodeobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/warnings.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/warnings.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/weakrefobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/weakrefobject.h"

')

Use --sandbox_debug to see verbose messages from the sandbox: bash failed: error executing command

(cd /private/var/tmp/_bazel_ericmjl/719374c0ec5e322f5961145356fcba5a/execroot/main &&

exec env -

CUDA_TOOLKIT_PATH=/usr/local/cuda

CUDNN_INSTALL_PATH=/usr/local/cuda

PATH=/Users/ericmjl/anaconda/envs/mpnn/bin:/usr/local/opt/curl/bin:/opt/local/bin:/opt/local/sbin:/Users/ericmjl/anaconda/bin:/usr/local/cuda-9.2/bin:/Users/ericmjl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Tex:/Users/ericmjl/pypy/bin:/usr/local/Cellar/pypy3/5.9.0/bin:/usr/local/bin

PYTHON_BIN_PATH=/Users/ericmjl/anaconda/envs/mpnn/bin/python

TF_NEED_CUDA=0

/bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh;

cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/Python-ast.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/Python-ast.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/Python.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/Python.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/abstract.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/abstract.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/accu.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/accu.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/asdl.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/asdl.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/ast.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/ast.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/bitset.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/bitset.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/bltinmodule.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/bltinmodule.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/boolobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/boolobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/bytearrayobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/bytearrayobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/bytes_methods.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/bytes_methods.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/bytesobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/bytesobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/cellobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/cellobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/ceval.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/ceval.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/classobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/classobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/code.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/code.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/codecs.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/codecs.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/compile.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/compile.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/complexobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/complexobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/datetime.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/datetime.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/descrobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/descrobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/dictobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/dictobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/dtoa.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/dtoa.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/dynamic_annotations.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/dynamic_annotations.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/enumobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/enumobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/errcode.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/errcode.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/eval.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/eval.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/fileobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/fileobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/fileutils.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/fileutils.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/floatobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/floatobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/frameobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/frameobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/funcobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/funcobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/genobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/genobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/graminit.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/graminit.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/grammar.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/grammar.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/import.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/import.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/intrcheck.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/intrcheck.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/iterobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/iterobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/listobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/listobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/longintrepr.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/longintrepr.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/longobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/longobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/marshal.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/marshal.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/memoryobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/memoryobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/metagrammar.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/metagrammar.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/methodobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/methodobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/modsupport.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/modsupport.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/moduleobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/moduleobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/namespaceobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/namespaceobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/node.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/node.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/object.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/object.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/objimpl.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/objimpl.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/odictobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/odictobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/opcode.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/opcode.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/osdefs.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/osdefs.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/osmodule.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/osmodule.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/parsetok.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/parsetok.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/patchlevel.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/patchlevel.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pgen.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pgen.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pgenheaders.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pgenheaders.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/py_curses.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/py_curses.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyarena.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyarena.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyatomic.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyatomic.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pycapsule.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pycapsule.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyconfig.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyconfig.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyctype.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyctype.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pydebug.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pydebug.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pydtrace.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pydtrace.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyerrors.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyerrors.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyexpat.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyexpat.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyfpe.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyfpe.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pygetopt.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pygetopt.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyhash.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyhash.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pylifecycle.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pylifecycle.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pymacconfig.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pymacconfig.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pymacro.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pymacro.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pymath.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pymath.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pymem.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pymem.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pyport.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pyport.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pystate.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pystate.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pystrcmp.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pystrcmp.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pystrhex.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pystrhex.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pystrtod.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pystrtod.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pythonrun.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pythonrun.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pythread.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pythread.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/pytime.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/pytime.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/rangeobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/rangeobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/setobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/setobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/sip.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/sip.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/sliceobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/sliceobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/structmember.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/structmember.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/structseq.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/structseq.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/symtable.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/symtable.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/sysmodule.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/sysmodule.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/token.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/token.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/traceback.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/traceback.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/tupleobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/tupleobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/typeslots.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/typeslots.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/ucnhash.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/ucnhash.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/unicodeobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/unicodeobject.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/warnings.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/warnings.h" && cp -f "/Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/weakrefobject.h" "bazel-out/darwin-opt/genfiles/external/local_config_python/python_include/weakrefobject.h"

')

Use --sandbox_debug to see verbose messages from the sandbox

cp: /Users/ericmjl/anaconda/envs/mpnn/include/python3.6m/Python-ast.h: No such file or directory

Target //build:install_xla_in_source_tree failed to build

INFO: Elapsed time: 1.181s, Critical Path: 0.21s, Remote (0.00% of the time): [queue: 0.00%, setup: 0.00%, process: 0.00%]

INFO: 0 processes.

FAILED: Build did NOT complete successfully

FAILED: Build did NOT complete successfully

Traceback (most recent call last):

File "build/build.py", line 301, in

main()

File "build/build.py", line 297, in main

[":install_xla_in_source_tree", os.getcwd()])

File "build/build.py", line 50, in shell

output = subprocess.check_output(cmd)

File "/Users/ericmjl/anaconda/envs/mpnn/lib/python3.7/subprocess.py", line 395, in check_output

**kwargs).stdout

File "/Users/ericmjl/anaconda/envs/mpnn/lib/python3.7/subprocess.py", line 487, in run

output=stdout, stderr=stderr)

subprocess.CalledProcessError: Command '['./bazel-0.19.2-darwin-x86_64', 'run', '--verbose_failures=true', '--config=mkl_open_source_only', ':install_xla_in_source_tree', '/Users/ericmjl/github/software/jax/build']' returned non-zero exit status 1.

One thing I am not sure of is why /usr/local/cuda still shows up in the output, especially when I'm using a tiny computer without a GPU ;).

Issue 2:
Please:

Check for duplicate issues.

Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:

If applicable, include full error messages/tracebacks.

On Ubuntu 20.04. I tried to bump the JAX version for some projects on my GPU machine. Pip version is 21.1.3.

➜ pip install --upgrade pip
Requirement already satisfied: pip in ./venv/lib/python3.8/site-packages (21.1.3)

➜ pip install --upgrade jax[cuda111] -f https://storage.googleapis.com/jax-releases/jax_releases.html
zsh: no matches found: jax[cuda111]

Wrapping the package name in quotes works:

➜ pip install --upgrade "jax[cuda111]" -f https://storage.googleapis.com/jax-releases/jax_releases.html
Looking in links: https://storage.googleapis.com/jax-releases/jax_releases.html
Requirement already satisfied: jax[cuda111] in ./venv/lib/python3.8/site-packages (0.2.16)
Requirement already satisfied: numpy>=1.17 in ./venv/lib/python3.8/site-packages (from jax[cuda111]) (1.21.0)
Requirement already satisfied: absl-py in ./venv/lib/python3.8/site-packages (from jax[cuda111]) (0.13.0)
Requirement already satisfied: opt_einsum in ./venv/lib/python3.8/site-packages (from jax[cuda111]) (3.3.0)
Collecting jaxlib==0.1.68+cuda111
Downloading https://storage.googleapis.com/jax-releases/cuda111/jaxlib-0.1.68%2Bcuda111-cp38-none-manylinux2010_x86_64.whl (195.9 MB)
|████████████████████████████████| 195.9 MB 10.0 MB/s
...

I saw that quotes are used in the TPU installation instruction in the readme, but not for the GPU and CPU one. Should this be changed in the readme? Thanks in advance!