I am following this tutorial: and more specifically:Install the Object Detection API
When I run this command:
python -m pip install --use-feature=2020-resolver .I get:
/usr/bin/python: No module named pipI tried the following combinations:
UbuntuUser@ubuntu:~/Desktop/TensorFlow/models/research$ sudo python -m pip install --use-feature=2020-resolver .
/usr/bin/python: No module named pip
UbuntuUser@ubuntu:~/Desktop/TensorFlow/models/research$ sudo python3 -m pip install --use-feature=2020-resolver .
Usage: /usr/bin/python3 -m pip install [options] <requirement specifier> [package-index-options] ... /usr/bin/python3 -m pip install [options] -r <requirements file> [package-index-options] ... /usr/bin/python3 -m pip install [options] [-e] <vcs project url> ... /usr/bin/python3 -m pip install [options] [-e] <local project path> ... /usr/bin/python3 -m pip install [options] <archive url/path> ...
no such option: --use-feature
UbuntuUser@ubuntu:~/Desktop/TensorFlow/models/research$ sudo python3 -m pip3 install --use-feature=2020-resolver .
/usr/bin/python3: No module named pip3
UbuntuUser@ubuntu:~/Desktop/TensorFlow/models/research$ sudo python -m pip3 install --use-feature=2020-resolver .
/usr/bin/python: No module named pip3Both pip and pip3 are install in Ubuntu Mate:
What is wrong?? I tried on google: /usr/bin/python: No module named pip , after installing pip it didn't help...
121 Answer
As you can see, pip does work when invoked with python3 -m pip. From the comments we've discovered that you are running v20.0.2. The --use-feature option was not added until 20.2 and, since the usual command to upgrade pip was not working, we omitted the option and it ran successfully.