3

我找不到在 Windows 上安装 Darknet 和 Lightnet 的任何好的教程。但是,按照他们官方 Git 页面上的教程,我尝试运行 Python 命令

pip install darknetpy

在运行此程序时,我看到以下错误:

  Failed building wheel for darknetpy
  Running setup.py clean for darknetpy
Failed to build darknetpy
Installing collected packages: darknetpy
  Running setup.py install for darknetpy ... error
    Complete output from command c:\users\pop\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Pop\\AppData\\Local\\Temp\\pip-build-aew1mvz2\\darknetpy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Pop\AppData\Local\Temp\pip-hj4a3ywj-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_ext
    'make' is not recognized as an internal or external command,
    operable program or batch file.
    error: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Pop\\AppData\\Local\\Temp\\darknet\\libdarknet.so'

    ----------------------------------------
Command "c:\users\pop\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Pop\\AppData\\Local\\Temp\\pip-build-aew1mvz2\\darknetpy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Pop\AppData\Local\Temp\pip-hj4a3ywj-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Pop\AppData\Local\Temp\pip-build-aew1mvz2\darknetpy\
4

2 回答 2

1

即使使用 Cygwin(64),问题darknetpy 问题 1也表明它无法在 Windows 上运行。

最好的选择是(在 Windows 上):

于 2017-12-23T17:51:35.357 回答
0

darketpypypi页面表明它需要 POSIX 操作系统。如果你想在 Windows 上安装它,你需要类似cygwin的东西。

于 2017-12-23T17:34:12.690 回答