1

I'm trying to install the Tensorflow Object Detection API, following several tutorials and the official documentation (Tensorflow Object Detection API). I've encountered multiple times the same error when running through the command prompt the following command:

>cp object detection/packages/tf2/setup.py .
'cp' is not recognized as an internal or external command, operable program or batch file.

Any help would be appreciated. I've also tried using "copy" instead of "cp" but no result.

P.S. I've installed GPU support as well.

5 Answers 5

4

You can use:

copy object_detection\\packages\\tf2\\setup.py .

With double back slashes. This works for me in -cmd editor

Sign up to request clarification or add additional context in comments.

Comments

1

cp won't work on command prompt. Try running it on powershell as cp '.\object detection\packages\tf2\setup.py' .

3 Comments

Thank you for your suggestion @Jitesh. I run the command using apostrophes and using "copy" instead of "cp" (it seemed to work in that way), like ---> copy './object_detection/packages/tf2/setup.py' . <--- But I got an error "The system cannot find the file specified.", although the file exists.
Are you able to get the command that I posted to work in windows power shell?
Actually it worked without using "copy" command. Thank you for your answers!
1

I faced the same issue but I went through these answers and figured it out thank you and I used PowerShell with minor change is the path define

cp object detection/packages/tf2/setup.py .

it should be object_detection like below

copy '.\object_detection\packages\tf2\setup.py' .

enter image description here

check this website for more details

Comments

0

copy "object detection\packages\tf2\setup.py" . Try this command

Comments

0

Hello I had kind of same issues. For me that helped.

  1. PS D:\models\research> cp '.\object_detection\packages\tf2\setup.py' .
  2. PS D:\models\research> python -m pip install .

enter image description here

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.