主要是遇到這個問題:
ModuleNotFoundError: No module named ‘mmcv._ext‘
error: a member with an in-class initializer must be const
請使用:pytorch1.8.0 cuda11.1
安裝步驟:
①設定 MSVC 編譯器:下載下傳Visual Studio2017和2019
設定環境變量。添加 `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\Hostx86\x64` 到 `PATH`。
為了相容性,我們使用 x86-hosted 以及 x64-targeted 版本,即路徑中的 `Hostx86\x64` 。
在cmd中運作cl
(base) PS C:\Users> cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.27.29111 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
②将系統語言更改為英語。控制台 -> 地區-> 管理-> 非 Unicode 來進行語言轉換.