Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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.

like image 805
Giuppox Avatar asked Sep 01 '20 11:09

Giuppox


People also ask

Is Anaconda necessary for TensorFlow?

Anaconda Python 3.8 (Optional) Although having Anaconda is not a requirement in order to install and use TensorFlow, I suggest doing so, due to it's intuitive way of managing packages and setting up new virtual environments.

How do I add a TensorFlow in Python?

Step 1 − Verify the python version being installed. Step 2 − A user can pick up any mechanism to install TensorFlow in the system. We recommend “pip” and “Anaconda”. Pip is a command used for executing and installing modules in Python.


1 Answers

I had the same problem, I upgraded pip version from 20.0.2 to 20.2.2, then it worked.

An issue was opened on github on this matter, check here.

Use python -m pip install --upgrade pip to upgrade pip.

like image 176
Catalina Chircu Avatar answered Oct 14 '22 10:10

Catalina Chircu