pip - 安装tensorflowjs时找不到tf-nightly的匹配发行版

标签 pip tensorflowjs-converter

我尝试在虚拟环境中安装tensorflowjs,但收到以下错误:

Could not find a version that satisfies the requirement tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs) (from versions: )
No matching distribution found for tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs)

我尝试升级 pip 并使用 virtualenv 和 venv 创建虚拟环境,并使用或不使用 --no-cache-dir 选项进行安装。

要重现该错误,我执行以下操作:

python3 -m venv .env
source .env/bin/activate
pip install tensorflowjs

这会导致输出:

Collecting tensorflowjs
  Downloading https://files.pythonhosted.org/packages/79/29/35e1aa467436ff46b98df65a08c49faaedb3429e1c512d1d90fe308040a0/tensorflowjs-1.0.1-py3-none-any.whl
Collecting tensorflow-hub==0.3.0 (from tensorflowjs)
  Downloading https://files.pythonhosted.org/packages/9e/f0/3a3ced04c8359e562f1b91918d9bde797c8a916fcfeddc8dc5d673d1be20/tensorflow_hub-0.3.0-py2.py3-none-any.whl (73kB)
    100% |████████████████████████████████| 81kB 7.6MB/s 
Collecting numpy==1.15.1 (from tensorflowjs)
  Downloading https://files.pythonhosted.org/packages/d4/fd/6c1c98862f78b1aacd8d81811900ddd5cbe34a6ed168e8f84e4df7cac30f/numpy-1.15.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (24.5MB)
    100% |████████████████████████████████| 24.5MB 39.6MB/s 
Collecting h5py==2.8.0 (from tensorflowjs)
  Downloading https://files.pythonhosted.org/packages/2a/13/d3fb885ff877578e0fddd8c71e1ed9e22207cec8469c0ef1e483ab5ca0d3/h5py-2.8.0-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (6.0MB)
    100% |████████████████████████████████| 6.1MB 42.3MB/s 
Collecting keras==2.2.4 (from tensorflowjs)
  Downloading https://files.pythonhosted.org/packages/5e/10/aa32dad071ce52b5502266b5c659451cfd6ffcbf14e6c8c4f16c0ff5aaab/Keras-2.2.4-py2.py3-none-any.whl (312kB)
    100% |████████████████████████████████| 317kB 44.3MB/s 
Collecting six==1.11.0 (from tensorflowjs)
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs)
  Could not find a version that satisfies the requirement tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs) (from versions: )
No matching distribution found for tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs)

我在 macOS 10.13.6 上使用 Python 3.7.2、pip 19.0.3。

最佳答案

tf-nightly-2.0-preview仅针对 Python 2.7 和 3.6 发布适用于 MacOS 的二进制文件。

关于pip - 安装tensorflowjs时找不到tf-nightly的匹配发行版,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55348654/

相关文章:

python - 将稳定基线 tensorflow 模型转换为 tensorflow js

javascript - 网络 worker 中的 tensorflow.js

python - 如何使用 pip 安装 Openpyxl

Python PIP 找不到 pywin32(在 windows 上)

Tensorflow.js 转换后的模型预测的结果与卡住模型不同/不准确

javascript - TensorflowJS 异步预测

django - 在 git Push 上强制重新创建 Heroku slug

python - 完整更新 pip 包时出错

python - PIP 的 UnicodeDecodeError?

javascript - 继续获取 : "Attempted import error: ' loadFrozenModel' is not exported from '@tensorflow/tfjs-converter' "