Python如何安装yolo34py或YOLO3 utils,yolo34py安装失败,出现“Python设置.py找不到“egg\u info”文件

2024-09-29 08:16:16 发布

您现在位置:Python中文网/ 问答频道 /正文

为了使from yolo_utils import read_classes, read_anchors, generate_colors, preprocess_image, draw_boxes, scale_boxesimport语句正常工作,我尝试安装pip install yolo34py,但出现了一个错误

(base) C:\Users\NAME>pip install yolo34py
Collecting yolo34py
  Using cached https://files.pythonhosted.org/packages/fa/25/91792cac161adf97d0dd9c0954c0f2c9d8c93bf9c5404ddff9fcd4b58ecf/yolo34py-0.1rc12.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\NAME~1\AppData\Local\Temp\pip-install-p8ba0876\yolo34py\setup.py", line 47, in <module>
        if USE_CV & (get_libs("opencv") == '' or get_cflags("opencv") == ''):
      File "C:\Users\NAME~1\AppData\Local\Temp\pip-install-p8ba0876\yolo34py\util.py", line 85, in get_libs
        proc = subprocess.Popen(shlex.split(command), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
      File "C:\Users\NAME\Documents\Softwares2019\miniconda3\lib\subprocess.py", line 775, in __init__
        restore_signals, start_new_session)
      File "C:\Users\NAME\Documents\Softwares2019\miniconda3\lib\subprocess.py", line 1178, in _execute_child
        startupinfo)
    **FileNotFoundError: [WinError 2] The system cannot find the file specified**

    ----------------------------------------
**Command "python setup.py egg_info" failed with error code 1 in**


**FileNotFoundError: [WinError 2] The system cannot find the file specified**

----------------------------------------

命令“python设置.py在
FileNotFoundError:[WinError 2]系统找不到指定的文件

知道会出什么问题吗?如何在WIndows中进行安装


Tags: installpipnameinfrompygetsetup