【发布时间】:2023-02-03 20:49:49
【问题描述】:
你可能知道,在 2.10 版本之后,tensorflow-text 不再作为 pip 包在 windows 上提供。
我尝试按照 https://github.com/tensorflow/text#build-from-source-steps 上的从源程序构建的过程进行操作,但在第 3 步失败了:
sh ./oss_scripts/run_build.sh
我有:
...
+++ python -c 'import tensorflow as tf; print('\'' '\''.join(tf.sysconfig.get_link_flags()))'
+++ awk '{print $2}'
+++ python -c 'import tensorflow as tf; print(tf.sysconfig.CXX11_ABI_FLAG)'
++ TF_ABIFLAG=0
++ HEADER_DIR='C:\Users\Gilles\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow\include'
++ SHARED_LIBRARY_DIR='C:\Users\Gilles\AppData\Local\Programs\Python\Python310\lib\site-packages\tensorflow'
+++ echo -l:libtensorflow_framework.so.2
+++ rev oss_scripts/configure.sh: line 88: rev: command not found
+++ cut -d: -f1
+++ rev oss_scripts/configure.sh: line 88: rev: command not found
++ SHARED_LIBRARY_NAME=
我的配置:
- Windows 10
- 蟒蛇10
- Tensorflow 2.11.0(点安装)
【问题讨论】:
标签: python tensorflow2.0