ModuleNotFoundError: No module named 'tensorflow' #4303
Unanswered
jed-hacker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i create a virtual env with python=3.10.18 and tensorflow=2.12.0,and running command 'pip install horovod',it happens 'ModuleNotFoundError: No module named 'tensorflow'' at the #

,so i check this file,FindTensorflow.cmake.
execute_process(COMMAND ${PY_EXE} -c "import tensorflow as tf; print(tf.version); print(tf.sysconfig.get_include()); print(' '.join(tf.sysconfig.get_link_flags())); print(' '.join(tf.sysconfig.get_compile_flags()))" OUTPUT_VARIABLE Tensorflow_OUTPUT OUTPUT_STRIP_TRAILING_WHITESPACE)
This line of code cannot recognize the libtensorflow_framework.so.2 generated by TensorFlow
Beta Was this translation helpful? Give feedback.
All reactions