我在我的CLion上安装了Bazel插件,我正在尝试导入一个新的Bazel C项目,并且我一直在考虑这些错误 –
tensorflow_gpu-1.8.0lft1-cp27-cp27mu-linux_x86_64.whl不是此平台上支持的滚轮.
ERROR: error loading package '':
Encountered error while reading extension file 'requirements.bzl': no such package '@my_deps//': Traceback (most recent call last):
File "/private/var/tmp/_bazel_pmanjunath/0f9184e7a61c3740275307da0cc42014/external/io_bazel_rules_python/python/pip.bzl", line 39 _pip_import_impl(repository_ctx, "python")
File "/private/var/tmp/_bazel_pmanjunath/0f9184e7a61c3740275307da0cc42014/external/io_bazel_rules_python/python/pip.bzl", line 35, in _pip_import_impl fail(("pip_import failed: %s (%s)" % ...)))
pip_import failed: (tensorflow_gpu-1.8.0lft1-cp27-cp27mu-linux_x86_64.whl is not a supported wheel on this platform. ).
在谷歌搜索我发现人们在他们的Linux盒子上有这个问题,解决方案是升级点子.我确实试过了
$sudo pip install --upgrade pip
$pip --version
pip 18.0 from /Library/Python/2.7/site-packages/pip (python 2.7)
但无济于事.我怀疑它正在拾取错误的.whl文件,因为该名称明确指出它的linux_x86_64.
有任何想法吗?
最佳答案 它读取tensorflow_gpu-1.8.0lft1-cp27-cp27mu-linux_x86_64.whl这个平台上不支持它. – >这意味着cp27& linux(显然是错误的平台).
这里将是MacOS的轮盘文件:tensorflow-1.10.0-py2-none-any.whl
它是版本1.10.0,但它可能足以满足依赖;安装方式相同:
python2 -m pip install tensorflow-1.10.0-py2-none-any.whl
如果版本1.10.0中的wheel文件不符合依赖关系,则“Plan B”将从branch 1.10.0签出,以便从源代码构建.