记录安装tensorflow wheel包时遇到的几个坑

原创
2017/12/02 14:41
阅读数 887

按照官网流程,成功完成了TensorFlow的编译工作,地址如下:

http://www.tensorfly.cn/tfdoc/get_started/os_setup.html

我本地的环境:mac,Python2.7

但在打wheel和安装wheel包的时候,碰到了几个坑爹问题。现记录如下:

1、命令:

bazel-bin/tensorflow/tools/pip_package/build_pip_package /Users/mengfeiyang/Downloads/tensorflow_pkg
   错误:

bazel-bin/tensorflow/tools/pip_package/build_pip_package: line 163: tools/python_bin_path.sh: No such file or directory
   解决方案:执行./configure 并一路回车即可

2、命令:

bazel-bin/tensorflow/tools/pip_package/build_pip_package /Users/mengfeiyang/Downloads/tensorflow_pkg
   错误:error: invalid command 'bdist_wheel'
   解决方案:pip install wheel

3、命令:

bazel-bin/tensorflow/tools/pip_package/build_pip_package /Users/mengfeiyang/Downloads/tensorflow_pkg
   错误:

OSError: [Errno 1] Operation not permitted: '/tmp/pip-jra9mX-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'


   解决方案:

sudo pip install --upgrade --ignore-installed six /Users/mengfeiyang/Downloads/tensorflow_pkg/tensorflow-1.4.0-cp27-cp27m-macosx_10_13_intel.whl


安装成功日志:
Successfully installed absl-py-0.1.5 backports.weakref-1.0.post1 bleach-1.5.0 enum34-1.1.6 funcsigs-1.0.2 html5lib-0.9999999 markdown-2.6.9 mock-2.0.0 numpy-1.13.3 pbr-3.1.1 protobuf-3.5.0.post1 setuptools-38.2.3 six-1.11.0 tensorflow-1.4.0 tensorflow-tensorboard-0.1.8 werkzeug-0.12.2 wheel-0.30.0

 

 

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部