Open glitchwizard opened 3 years ago
I confirm this error happens, I had the same issue. I fixed it by following the steps suggested by [MissMasawi] on https://answers.microsoft.com/en-us/windows/forum/all/microsoft-visual-c-140/6f0726e2-6c32-4719-9fe5-aa68b5ad8e6d?page=2 after downloading approximately 6~8gb of files, as below:
Go to https://visualstudio.microsoft.com/downloads/ under Tools for Visual Studio 2019 download Build Tools for Visual Studio 2019 (~1MB download) Run and under Workload select C++ Build Tools, then under Options select MSVC v142 - VS 2019 C++ x64/x86 build tools (v 14.26) & Windows 10 SDK (10.0.17763.0) only (selects newer versions if available)
I have identified other requirements to run the demo and detector notebooks, which are not explicitly mentioned:
jupyterlab tensorflow scipy scikit-image imgaug pip git
Also worth mentioning that graphviz must be installed when creating the conda environment. Installing it inside the enviroment using git on the terminal will not work.
In the Readme.md for this project, it calls for
pip3 install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
and I wasn't able to get it to work with just that command.I continuously got this error:
At first I followed the suggestion and went to https://visualstudio.microsoft.com/visual-cpp-build-tools/, but installing that continued to show the same error.
I stumbled on this How to install c++ build tools in a conda virtual environment for use with cython/setproctitle, and the suggestion of installing Microsoft Visual C++ 14.0 worked and I was able to get the CocoAPI to install.