已经多次询问该错误,答案总是是将\models\research
和\models\research\slim
添加到路径中。我从一个名为mv
的virtualenv环境中运行,并且在运行以下命令时:(mv) D:\training\Tensorflow\models\research\object_detection>echo %PATH%
以查看适用于我的环境的路径,我得到以下信息:
D:\training\Tensorflow\mv\Scripts;
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem;
C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;
C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;
C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;
C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\130\DTS\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;
C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\nodejs\;
C:\Program Files\dotnet\;
C:\Program Files\Microsoft\Web Platform Installer\;
C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;
C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;
C:\WINDOWS\System32\OpenSSH\;
C:\Program Files\Git\cmd;
C:\Program Files\Amazon\AWSCLI\;
C:\Users\steven.kirby.AYOKA\AppData\Local\Android\Sdk\platform-tools;
C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;
C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.3.0\;
C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;
D:\training\Tensorflow\models\research;
D:\training\Tensorflow\models\research\slim;
D:\training\Tensorflow\models;
C:\Users\rahme.butaineh\AppData\Local\Programs\Python\Python36\Scripts\;
C:\Users\rahme.butaineh\AppData\Local\Programs\Python\Python36\;
C:\Users\rahme.butaineh\AppData\Local\Microsoft\WindowsApps;;
C:\Users\rahme.butaineh\AppData\Local\Programs\Microsoft VS Code\bin
正如您在底部看到的那样,这两个目录都在路径上。我也尝试使用\ {search}用python setup.py build
和python setup.py install
建立目录,但还是没有运气。我要去哪里错了?