简体   繁体   English

没有这样的选项: --use-feature while installing tensorflow object detection api

[英]no such option: --use-feature while installing tensorflow object detection api

I'm trying to install Tensorflow Object Detection API, following the steps at this link , which is the official installation's documentation for Tensorflow 2.我正在尝试按照此链接中的步骤安装 Tensorflow Object 检测 API,这是 Tensorflow 2 的官方安装文档。

git clone https://github.com/tensorflow/models.git
> everything is ok
cd models/research/
> everything is ok
protoc object_detection/protos/*.proto --python_out=.
> everything is ok
cp object_detection/packages/tf2/setup.py .
> everything is ok
python -m pip install --use-feature=2020-resolver .

> Usage:   
>   /opt/anaconda3/envs/ml/bin/python -m pip install [options] <requirement specifier> [package-> index-options] ...
>   /opt/anaconda3/envs/ml/bin/python -m pip install [options] -r <requirements file> [package-index-options] ...
>   /opt/anaconda3/envs/ml/bin/python -m pip install [options] [-e] <vcs project url> ...
>   /opt/anaconda3/envs/ml/bin/python -m pip install [options] [-e] <local project path> ...
>   /opt/anaconda3/envs/ml/bin/python -m pip install [options] <archive url/path> ...

> no such option: --use-feature

Can someone help me understand why the installation stops as it does?有人可以帮我理解为什么安装会停止吗? I'm using macOS Mojave, Python 3.6 (on a conda virtual env), and Tensorflow 2.3.0.我正在使用 macOS Mojave、Python 3.6(在 conda 虚拟环境上)和 Tensorflow 2.3.0。

I had the same problem, I upgraded pip version from 20.0.2 to 20.2.2, then it worked.我有同样的问题,我将 pip 版本从 20.0.2 升级到 20.2.2,然后就可以了。

An issue was opened on github on this matter, check here .关于这个问题,github 打开了一个问题,查看这里

Use python -m pip install --upgrade pip to upgrade pip.使用python -m pip install --upgrade pip升级 pip。

just needed to upgrade pip from version 20.0.2 to 20.2.2.只需要将 pip 从版本 20.0.2 升级到 20.2.2。 An issue on github has also been opened ( here ) github 上的一个问题也已打开( 此处

For the Tensorflow installation, you can simply remove this option and use:对于 Tensorflow 安装,您可以简单地删除此选项并使用:

python -m pip install .

Read this :这个

pip 20.1 included an alpha version of the new resolver (hidden behind an optional --unstable-feature=resolver flag). pip 20.1 包含新解析器的 alpha 版本(隐藏在可选的 --unstable-feature=resolver 标志后面)。 pip 20.2 removes that flag, and includes a robust beta of the new resolver (hidden behind an optional --use-feature=2020-resolver flag) that we encourage you to test. pip 20.2 删除了该标志,并包含我们鼓励您测试的新解析器的强大测试版(隐藏在可选的 --use-feature=2020-resolver 标志后面)。 We will continue to improve the pip dependency resolver in response to testers' feedback.我们将根据测试人员的反馈继续改进 pip 依赖解析器。 Please give us feedback through the resolver testing survey.请通过解析器测试调查向我们提供反馈。 This will help us prepare to release pip 20.3, with the new resolver on by default, in October.这将帮助我们准备在 10 月份发布 pip 20.3,默认情况下启用新的解析器。

This is what i did and it worked这就是我所做的并且有效

python -m pip install --user --use-feature=fast-deps. python -m pip 安装 --user --use-feature=fast-deps。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM