ModuleNotFoundError:「pycocotools」ソリューションという名前のモジュールはありません

概要:

  • pycocotoolsパッケージに起因するエラーがなく、pycocotoolsパッケージにはcythonおよびCコンパイラが必要であるため、cythonをインストールする前にCythonをインストールする必要があります。

解決策:

  • Cythonをインストールする
    pip install -U cython
  • Linuxはpycocotoolsをインストールします
    pipインストール" git + https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI "
  • Windowsインストールpycocotools
    pip install "git + https:// github.com/philferriere/cocoapi.git#egg=pycocotools^&subdirectory=PythonAPI"

     

おすすめ

転載: www.cnblogs.com/dyc99/p/12751535.html