You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build of Keras from source fails on Windows "cp: cannot stat 'bazel-bin/keras/tools/pip_package/build_pip_package.runfiles/org_keras/keras': No such file or directory"
#340
Closed
MidouDali opened this issue
Dec 4, 2022
· 6 comments
I used bazel to build Keras from source on Windows 10. I ran this command:
bazel --output_user_root=C:/tmp5 build //keras/tools/pip_package:build_pip_package
Then, when I wanted to create the package with this command:
bazel-bin\keras\tools\pip_package\build_pip_package C:/tmp/keras_pkg
I got this error:
It seems that the error came from the buil_pip_pacakge file (line 36):
I verified that the folder "bazel-bin" was created:
The following figures present the sub-elements of the folders "bazel-bin" and "build_pip_package.exe.runfiles":
The text was updated successfully, but these errors were encountered:
MidouDali
changed the title
Build of Keras from source fails on Windows “Could not find bazel-bin. Did you run from the root of the build tree?”
Build of Keras from source fails on Windows "cp: cannot stat 'bazel-bin/keras/tools/pip_package/build_pip_package.runfiles/org_keras/keras': No such file or directory"
Dec 4, 2022
@MidouDali To use Keras, you will need to have the TensorFlow package installed. Please check these detailed instructions and let us know if it helps? This article on building Keras from source might help as well. Thank you!
@sushreebarsa Thank you, I have the Tensorflow package installed. I followed all the steps in the article and got the same error because it seems that Keras requires the creation of the path "bazel-bin/keras/tools/pip_package/build_pip_package.runfiles/org_keras/keras". This path was not created in the "bazel-bin" folder. In addition, I got a folder "build_pip_package.exe.runfiles" and not "build_pip_package.runfiles".
Thank you
I used bazel to build Keras from source on Windows 10. I ran this command:
bazel --output_user_root=C:/tmp5 build //keras/tools/pip_package:build_pip_package
Then, when I wanted to create the package with this command:
bazel-bin\keras\tools\pip_package\build_pip_package C:/tmp/keras_pkg
I got this error:
It seems that the error came from the buil_pip_pacakge file (line 36):
I verified that the folder "bazel-bin" was created:
The following figures present the sub-elements of the folders "bazel-bin" and "build_pip_package.exe.runfiles":
The text was updated successfully, but these errors were encountered: