How to Install Pycocotools Through Conda
Enviroment Os: Windows 7 Python: Python 3.7.3 Conda: Conda 4.8.2 Step1: Download Soucre Code of Pococtools from Github with Linker Fellowing: Step2: Build &...
- Enviroment
OS:windows 7
Python:Python 3.7.3
Conda:conda 4.8.2
Step1: download soucre code of pococtools from github with linker fellowing:
Step2: build & install pococotall package by running
python setup.py build_ext --inplace,
python setup.py build_ext install
sequently.
ModuleNotFoundError:No modul named 'Cython'
Soluttion: pip install Cython
Error: command 'cl.exe' failed:No such file or directory
Solution: install Visual Studio 2019 and ensure install 'Desktop development with c++' enviroment.
After deal with all probelem,you can run the two instrustion to finish the installment.You can run
conda list
and then check pycocotools.
6 Answers
This worked for me:
pip install pycocotools-windows
I just went down this list until I found one that worked:
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
Annoyingly, it seems that for some setups pycocotools will install just fine. But then, when you want to import it, the script will freeze at the import step. In that case, just go down the list and try the next one.
The last one (and most recent) worked for me, so perhaps start there.
If you don't mind using conda & pip together, this worked for me:
conda install Cython
pip install pycocotools
This worked for me:
pip install pycocotools-windows