无法在 Python 中安装 Yolo v3 (yolo34py-gpu)



无法安装 yolo34py-gpu(我为文字墙道歉(

$ pip3 install yolo34py-gpu
Collecting yolo34py-gpu
  Using cached https://files.pythonhosted.org/packages/dc/a3/12c668e54109c5469a8312d757b357dda0b2efc2150043b76b58f6ba75c3/yolo34py-gpu-0.1rc12.tar.gz
    ERROR: Command errored out with exit status 1:
     command: 'c:userscarlbappdatalocalprogramspythonpython36python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\carlb\AppData\Local\Temp\pip-install-798aonwf\yolo34py-gpu\setup.py'"'"'; __file__='"'"'C:\Users\carlb\AppData\Local\Temp\pip-install-798aonwf\yolo34py-gpu\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: C:UserscarlbAppDataLocalTemppip-install-798aonwfyolo34py-gpu
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:UserscarlbAppDataLocalTemppip-install-798aonwfyolo34py-gpusetup.py", line 47, in <module>
        if USE_CV & (get_libs("opencv") == '' or get_cflags("opencv") == ''):
      File "C:UserscarlbAppDataLocalTemppip-install-798aonwfyolo34py-gpuutil.py", line 85, in get_libs
        proc = subprocess.Popen(shlex.split(command), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
      File "c:userscarlbappdatalocalprogramspythonpython36libsubprocess.py", line 729, in __init__
        restore_signals, start_new_session)
      File "c:userscarlbappdatalocalprogramspythonpython36libsubprocess.py", line 1017, in _execute_child
        startupinfo)
    FileNotFoundError: [WinError 2] The system cannot find the file specified
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

来自 github 的先决条件 (https://github.com/madhawav/YOLO3-4-Py(:蟒:

>>>import sys
>>>print(sys.version)
3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)]

Numpy, Cython, OpenCV:(省略其他包(

$pip freeze
numpy==1.16.1
Cython==0.29.12
OpenCV-python==4.1.0.25

库达:

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:04_Central_Daylight_Time_2018
Cuda compilation tools, release 10.0, V10.0.130
--

感谢您的阅读和愉快的编码。

"在同一存储库中查看此问题。作者在本期中回答说不支持Windows。和你的错误一样。– 阿克谢克07">

https://github.com/madhawav/YOLO3-4-Py/issues/79

最新更新