TannerGilbert / Tensorflow-Object-Detection-API-Train-Model

Train a object detection model with the Tensorflow Object Detection API and Tensorflow 2.
https://gilberttanner.com/blog/creating-your-own-objectdetector
MIT License
194 stars 104 forks source link

Error during the installation process #24

Closed poorya7 closed 3 years ago

poorya7 commented 3 years ago

Describe the bug I get lots of error during the installation process, when I execute the python install command. err

To Reproduce Steps to reproduce the behavior: I've been following it step by step but when I run the command python -m pip install . halfway through its execution I get a bunch of errors in red and it exits. Errors say things like Connection closed and .. .I've been struggling with it for a while and nothing works. I've attached a screenshot of the errors.

Desktop (please complete the following information):

TannerGilbert commented 3 years ago

I couldn't reproduce this error on my Windows machine (Python 3.8.8). I found a question on Stackoverflow, but I'm not sure if this will help fix this error.

poorya7 commented 3 years ago

I think this might be a library compatibility issue, or version issue, because I was trying another tutorial which was very similar to yours, and in that one, instead of the command python -m pip install . the tutorial suggested to use the command python setup.py install and when I try that, half way through it, the process exits with : fatal error C1083: Cannot open include file: 'math.h': No such file or directory. I attached a screenshot!

fatal

Any ideas how I can resolve it? Thanks again Gilbert.

poorya7 commented 3 years ago

after a long day I finally managed to solve it. What worked for me was to uninstall and re-install the Visual C++ 2015 build tools. It can be found here: https://go.microsoft.com/fwlink/?LinkId=691126 (copy and paste the link in a new tab rather than clicking on it)