Installed C++ build tools via Visual Studio Installed, but pip install pycocotools still give me error

160 views Asked by At

Installing pycotools via pip install gives the error error log of failing to install pycotools

I have installed C++ build tools via Visual Studio Installed image of installed C++ build tools

But, when I pip install pycocotools, It still gives the error error log of failing to install pycotools

2

There are 2 answers

0
MAHDI SOLTANI PAKDEL On

Do not try for installing pycocotools(original) on Visual Studio. if you want to do that, you must install clone of pycocotools from this: https://github.com/philferriere/cocoapi

0
Zhang Henry On

Thx to MAHDI SOLTANI PAKDEL's solution, I have found an alternative solution: installing pycocotools won't require C++ build tools.

conda install -c conda-forge pycocotools
conda install -c conda-forge/label/gcc7 pycocotools
conda install -c conda-forge/label/cf201901 pycocotools
conda install -c conda-forge/label/cf202003 pycocotools