EthanH3514/AL_Yolo

启动失败:DLL load failed while importing dxshot: 找不到指定的模块。

Closed this issue · 4 comments

Traceback (most recent call last):
File "E:\codespace\AL_Yolo\apex.py", line 2, in
from detect import YOLOv5Detector
File "E:\codespace\AL_Yolo\detect.py", line 11, in
from Capture import LoadScreen
File "E:\codespace\AL_Yolo\Capture.py", line 1, in
import dxshot
ImportError: DLL load failed while importing dxshot: 找不到指定的模块。
dxshot模块在哪呢?

dxshot在 AL_Yolo\dxshot.pyd 中,请检查 dxshot.pyd 是否在工作目录下

如果 dxshot.pyd 在工作目录下仍然报错,请尝试将 Capturer.py 中前面的import部分改写成下面这样:

import pyautogui
from utils.augmentations import letterbox
import numpy as np
import time
import sys
import os

ROOT = os.getcwd()
sys.path.append(os.path.join(ROOT, "dxshot.pyd"))

import dxshot

还有注意python版本

然而并不行,所以哥,你的pyd里面有dxshot吗,要不开源下嘛

然而并不行,所以哥,你的pyd里面有dxshot吗,要不开源下嘛

dxshot 就是 ./dxshot.pyd ,在主目录下