<div dir="ltr">Hi,<div><br></div><div>I'm trying to compile tensorflow r1.14 from source following the instruction on the TF website.</div><div><br></div><div>Here's my setup:</div><div><br></div><div>pypy3 virtual environment with:</div><div>- Pypy3 (latest version 7.3) on ubuntu 18.04</div><div>- Cuda 10.1 installed</div><div>- numpy 1.18.1 installed</div><div><br></div><div>I've asked for XLA jit compilation and CUDA support from the ./configure script</div><div><br></div><div>the build command:</div><div><br></div><div>bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package<br></div><div><br></div><div>compiles about 23000 targets and then fails with this stacktrace:</div><div><br></div><div>...</div><div><br></div><div>Traceback (most recent call last):<br>  File "/home/vretiel/.cache/bazel/_bazel_vretiel/ec2591a0fe29386400d95468f7c519e5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/keras/api/create_tensorflow.python_api_1_keras_python_api_gen_compat_v1.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 58, in <module><br>    from tensorflow.python.pywrap_tensorflow_internal import *<br>  File "/home/vretiel/.cache/bazel/_bazel_vretiel/ec2591a0fe29386400d95468f7c519e5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/keras/api/create_tensorflow.python_api_1_keras_python_api_gen_compat_v1.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module><br>    _pywrap_tensorflow_internal = swig_import_helper()<br>  File "/home/vretiel/.cache/bazel/_bazel_vretiel/ec2591a0fe29386400d95468f7c519e5/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/python/keras/api/create_tensorflow.python_api_1_keras_python_api_gen_compat_v1.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 20, in swig_import_helper<br>    import _pywrap_tensorflow_internal<br>ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'<br></div><div><br></div><div>The exact same commands (./configure {with the same options} and bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package) work perfectly when compiling against cpython 3.6.</div><div>So there's some path/name mangling going on with pypy3. </div><div><br></div><div>Any idea how I can get this compilation to work?</div><div>Thanks.</div><div><br></div><div><br></div><div><br></div></div>