When reproducing Mask RCNN, you need pycocotools, tried online tutorials, and finally concluded by yourself. . .
Try the following:
1. Install git
conda install git
2. Install cython
pip install cython
3. Download and install pycocotools, it should be that someone rewrote this library under win
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
However, after trying
Report an error, let's just say
Or that I don't have visual c++: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
Then I give up on this method, so skip to 4
4. Directly download the pycocotools from Tsinghua source to the lib of your current anaonda virtual environment (for example, mine is D:\Anaconda\envs\cnn\Lib), and then pip install is ok
Download link: Links for pycocotools-windows
For example, my python version is 3.7, then download pycocotools_windows-2.0.0.1-cp37-cp37m-win_amd64.whl
Then, success.
There is also no need to install vs or the like.
-----------------------------------------
But I found that although pycocotools is installed successfully, it will not compile, so I will next vc
Reference link:
https://github.com/philferriere/cocoapi
If the installation package is missing or damaged, refer to the link below to download a new installation package. Install visual studio C++ build tools on win10, prompting that the installation package is missing or damaged