【问题标题】:Pip is not installing TensorFlow Nightly MacPip 未安装 TensorFlow Nightly Mac
【发布时间】:2023-07-01 18:57:01
【问题描述】:

Pip 未安装 TensorFlow Nightly。有没有其他方法可以安装它?这是我尝试过的。

Louis-MacBook-Pro:~ yelouis$ python3 -m pip install tf-nightly
Collecting tf-nightly
  Could not find a version that satisfies the requirement tf-nightly (from versions: )
No matching distribution found for tf-nightly

Louis-MacBook-Pro:~ yelouis$ pip install tf-nightly
Collecting tf-nightly
  Could not find a version that satisfies the requirement tf-nightly (from versions: )
No matching distribution found for tf-nightly

更新:我已经下载了文件并尝试使用路径来安装它。这是结果,但仍然无法正常工作。

【问题讨论】:

标签: python python-3.x macos tensorflow pip


【解决方案1】:

您可以尝试从 here 下载 tf-nightly,然后使用 pip install <path/to/package>.whl 安装。

确保下载与您的 Python 版本兼容的版本。

【讨论】:

  • 输入该命令后,我发现 tf_nightly-1.13.0a0.dev20181218-cp27-cp27m-macosx_10_12_x86_64.whl 不是该平台支持的滚轮。 @Chris M.
  • @LouisYe 看起来您使用的是 Python 3,在这种情况下,我认为您应该尝试下载其他文件 (tf_nightly-1.13.0a0.dev20181218-cp36-cp36m-macosx_10_6_intel.whl)。
  • 另一个文件也不起作用。我得到了同样的错误。
  • Python 3.7.1不下载36轮了吗?我认为这就是问题所在。
  • @LouisYe 尝试使用conda create -n my_environment_name python=3.6 使用 Python 3.6 创建一个虚拟环境,然后尝试在该环境中安装 tf-nightly。