windows python3.7安装完paddle之后,出现找不到指定模块。
Created by: wwwanwei
Traceback (most recent call last): File "tools/infer/predict_system.py", line 20, in import tools.infer.utility as utility File "F:\python\PaddleOCR\tools\infer\utility.py", line 17, in from ppocr.utils.utility import initial_logger File "F:\python\PaddleOCR\ppocr\utils\utility.py", line 19, in from paddle import fluid File "C:\Python37\lib\site-packages\paddle_init_.py", line 37, in import paddle.complex File "C:\Python37\lib\site-packages\paddle\complex_init_.py", line 15, in from . import tensor File "C:\Python37\lib\site-packages\paddle\complex\tensor_init_.py", line 15, in from . import math File "C:\Python37\lib\site-packages\paddle\complex\tensor\math.py", line 15, in from paddle.common_ops_import import * File "C:\Python37\lib\site-packages\paddle\common_ops_import.py", line 15, in from paddle.fluid.layer_helper import LayerHelper File "C:\Python37\lib\site-packages\paddle\fluid_init_.py", line 56, in from . import contrib File "C:\Python37\lib\site-packages\paddle\fluid\contrib_init_.py", line 27, in from . import slim File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim_init_.py", line 15, in from .core import * File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\core_init_.py", line 15, in from . import config File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\core\config.py", line 19, in from ..prune import * File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\prune_init_.py", line 17, in from . import prune_strategy File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\prune\prune_strategy.py", line 22, in from scipy.optimize import leastsq File "C:\Python37\lib\site-packages\scipy\optimize_init_.py", line 390, in from .optimize import * File "C:\Python37\lib\site-packages\scipy\optimize\optimize.py", line 37, in from .linesearch import (line_search_wolfe1, line_search_wolfe2, File "C:\Python37\lib\site-packages\scipy\optimize\linesearch.py", line 18, in from scipy.optimize import minpack2 ImportError: DLL load failed: 找不到指定的模块。
F:\python\PaddleOCR>python tools/infer/predict_system.py --image_dir="./doc/imgs/11.jpg" --det_model_dir="./inference/ch_det_mv3_db/" --rec_model_dir="./inference/ch_rec_mv3_crnn/" Traceback (most recent call last): File "tools/infer/predict_system.py", line 20, in import tools.infer.utility as utility File "F:\python\PaddleOCR\tools\infer\utility.py", line 17, in from ppocr.utils.utility import initial_logger File "F:\python\PaddleOCR\ppocr\utils\utility.py", line 19, in from paddle import fluid File "C:\Python37\lib\site-packages\paddle_init_.py", line 37, in import paddle.complex File "C:\Python37\lib\site-packages\paddle\complex_init_.py", line 15, in from . import tensor File "C:\Python37\lib\site-packages\paddle\complex\tensor_init_.py", line 15, in from . import math File "C:\Python37\lib\site-packages\paddle\complex\tensor\math.py", line 15, in from paddle.common_ops_import import * File "C:\Python37\lib\site-packages\paddle\common_ops_import.py", line 15, in from paddle.fluid.layer_helper import LayerHelper File "C:\Python37\lib\site-packages\paddle\fluid_init_.py", line 35, in from . import framework File "C:\Python37\lib\site-packages\paddle\fluid\framework.py", line 35, in from . import core File "C:\Python37\lib\site-packages\paddle\fluid\core.py", line 264, in raise e File "C:\Python37\lib\site-packages\paddle\fluid\core.py", line 234, in from .core_avx import * File "C:\Python37\lib\site-packages\paddle\fluid\core_avx_init_.py", line 107 def infer_no_need_buffer_slots(arg0, arg1, p_str=None, List=None, p_str=None_1, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from doc ^ SyntaxError: duplicate argument 'p_str' in function definition
F:\python\PaddleOCR>python tools/infer/predict_system.py --image_dir="./doc/imgs/11.jpg" --det_model_dir="./inference/ch_det_mv3_db/" --rec_model_dir="./inference/ch_rec_mv3_crnn/" Traceback (most recent call last): File "tools/infer/predict_system.py", line 20, in import tools.infer.utility as utility File "F:\python\PaddleOCR\tools\infer\utility.py", line 17, in from ppocr.utils.utility import initial_logger File "F:\python\PaddleOCR\ppocr\utils\utility.py", line 19, in from paddle import fluid File "C:\Python37\lib\site-packages\paddle_init_.py", line 37, in import paddle.complex File "C:\Python37\lib\site-packages\paddle\complex_init_.py", line 15, in from . import tensor File "C:\Python37\lib\site-packages\paddle\complex\tensor_init_.py", line 15, in from . import math File "C:\Python37\lib\site-packages\paddle\complex\tensor\math.py", line 15, in from paddle.common_ops_import import * File "C:\Python37\lib\site-packages\paddle\common_ops_import.py", line 15, in from paddle.fluid.layer_helper import LayerHelper File "C:\Python37\lib\site-packages\paddle\fluid_init_.py", line 56, in from . import contrib File "C:\Python37\lib\site-packages\paddle\fluid\contrib_init_.py", line 27, in from . import slim File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim_init_.py", line 15, in from .core import * File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\core_init_.py", line 15, in from . import config File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\core\config.py", line 19, in from ..prune import * File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\prune_init_.py", line 17, in from . import prune_strategy File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\prune\prune_strategy.py", line 22, in from scipy.optimize import leastsq File "C:\Python37\lib\site-packages\scipy\optimize_init_.py", line 390, in
F:\python\PaddleOCR>python3 tools/infer/predict_system.py --image_dir="./doc/imgs/11.jpg" --det_model_dir="./inference/ch_det_mv3_db/" --rec_model_dir="./inference/ch_rec_mv3_crnn/"
F:\python\PaddleOCR>python tools/infer/predict_system.py --image_dir="./doc/imgs/11.jpg" --det_model_dir="./inference/ch_det_mv3_db/" --rec_model_dir="./inference/ch_rec_mv3_crnn/" Traceback (most recent call last): File "tools/infer/predict_system.py", line 20, in import tools.infer.utility as utility File "F:\python\PaddleOCR\tools\infer\utility.py", line 17, in from ppocr.utils.utility import initial_logger File "F:\python\PaddleOCR\ppocr\utils\utility.py", line 19, in from paddle import fluid File "C:\Python37\lib\site-packages\paddle_init_.py", line 37, in import paddle.complex File "C:\Python37\lib\site-packages\paddle\complex_init_.py", line 15, in from . import tensor File "C:\Python37\lib\site-packages\paddle\complex\tensor_init_.py", line 15, in from . import math File "C:\Python37\lib\site-packages\paddle\complex\tensor\math.py", line 15, in from paddle.common_ops_import import * File "C:\Python37\lib\site-packages\paddle\common_ops_import.py", line 15, in from paddle.fluid.layer_helper import LayerHelper File "C:\Python37\lib\site-packages\paddle\fluid_init_.py", line 56, in from . import contrib File "C:\Python37\lib\site-packages\paddle\fluid\contrib_init_.py", line 27, in from . import slim File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim_init_.py", line 15, in from .core import * File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\core_init_.py", line 15, in from . import config File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\core\config.py", line 19, in from ..prune import * File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\prune_init_.py", line 17, in from . import prune_strategy File "C:\Python37\lib\site-packages\paddle\fluid\contrib\slim\prune\prune_strategy.py", line 22, in from scipy.optimize import leastsq File "C:\Python37\lib\site-packages\scipy\optimize_init_.py", line 390, in from .optimize import * File "C:\Python37\lib\site-packages\scipy\optimize\optimize.py", line 37, in from .linesearch import (line_search_wolfe1, line_search_wolfe2, File "C:\Python37\lib\site-packages\scipy\optimize\linesearch.py", line 18, in from scipy.optimize import minpack2 ImportError: DLL load failed: 找不到指定的模块。