Closed Jerry-Master closed 2 years ago
Hey! Have you solved the problem?
Thanks.
No
facing the same problem with lxml installation from requirements.tx
Same issue for spacy 2.2.4
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure × Encountered error while trying to install package. ╰─> blis note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: su
has anyone found a solution
I have an Apple M1 Macbook Air I was able to get past the pygraphviz installation problem with:
brew install graphviz
brew install graphviz-devel
Then (replacing
export GRAPHVIZ_DIR="/usr/local/Cellar/graphviz/<VERSION>"
pip install pygraphviz --global-option=build_ext --global-option="-I$GRAPHVIZ_DIR/include" --global-option="-L$GRAPHVIZ_DIR/lib"
I was also able to get past the tensorflow error, by changing the requirement in setup.py from "tensorflow-cpu" to "tensorflow-macos"
Then, I had an issue with bazel builds:
DEBUG: /private/var/tmp/_bazel_cjoverbay/a57bf63f72917c0265cc0fb09ed42f76/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
Analyzing: target //package:move_generated_files (0 packages loaded, 0 targets configured)
ERROR: /private/var/tmp/_bazel_cjoverbay/a57bf63f72917c0265cc0fb09ed42f76/external/local_config_cc/BUILD:48:19: in cc_toolchain_suite rule @local_config_cc//:toolchain: cc_toolchain_suite '@local_config_cc//:toolchain' does not contain a toolchain for cpu 'darwin_arm64'
ERROR: /private/var/tmp/_bazel_cjoverbay/a57bf63f72917c0265cc0fb09ed42f76/external/local_config_cc/BUILD:48:19: Analysis of target '@local_config_cc//:toolchain' failed
ERROR: /private/var/tmp/_bazel_cjoverbay/a57bf63f72917c0265cc0fb09ed42f76/external/com_google_protobuf/BUILD:412:10: errors encountered resolving select() keys for @com_google_protobuf//:protoc
ERROR: Analysis of target '//package:move_generated_files' failed; build aborted:
INFO: Elapsed time: 0.075s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
ERROR: Build failed. Not running target
Which I resolved with the following thread (needed to add darwin_amd64 to toolchain) https://github.com/bazelbuild/bazel/issues/13514
Now I am blocked on other bazel related issue (segmentation fault) Investigating here. https://github.com/protocolbuffers/protobuf/issues/8884
Hi, please try installing 0.2.0 via pip install tensorflow_gnn
and open another issue if that doesn't work for you.
I am trying to install tensorflow_gnn in my own environment on MacOS Monterey. My Python version is 3.9 and I have Bazel, tensorflow and graphviz installed. The errors are the following:
When trying to fix the pygraphviz error I also followed this thread and this one. But the errors are still the same.
I know there was an issue in #7 with one line in
package/BUILD
but that line is no longer in the file in the new version so that is not the problem. Please, any help is appreciated.