Toybrick

标题: 运行run_demo报错 [打印本页]

作者: awiueret    时间: 2019-10-25 13:52
标题: 运行run_demo报错
运行run_demo.exe
OSError: [WinError 126] 找不到指定的模块。请问是什么原因呢?



Python 3.6.8
(rknn_win_env) D:\Sales\Customer-Rockchip\RK1808\RK1808\example>cd yolov3
(rknn_win_env) D:\Sales\Customer-Rockchip\RK1808\RK1808\example\yolov3>python rknn_camera_tiny_multiProcess.py
Traceback (most recent call last):
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\tensorflow_core\python\platform\self_check.py", line 47, in preload_check
    ctypes.WinDLL(build_info.msvcp_dll_name)
  File "c:\users\paul\appdata\local\programs\python\python36\Lib\ctypes\__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "rknn_camera_tiny_multiProcess.py", line 8, in <module>
    from rknn.api import RKNN
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\rknn\__init__.py", line 1, in <module>
    from rknn import api
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\rknn\api\__init__.py", line 1, in <module>
    from rknn.api.rknn import RKNN
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\rknn\api\rknn.py", line 16, in <module>
    from .rknn_base import RKNNBase
  File "rknn\api\rknn_base.py", line 13, in init rknn.api.rknn_base
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\rknn\base\acuitylib\__init__.py", line 1, in <module>
    from acuitylib.optimize.optimizer import Optimizer
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\rknn\base\acuitylib\__init__.py", line 1, in <module>
    from acuitylib.optimize.optimizer import Optimizer
  File "rknn\base\acuitylib\optimize\optimizer.py", line 13, in init rknn.base.acuitylib.optimize.optimizer
  File "rknn\base\acuitylib\optimize\rules\merge_layer.py", line 3, in init rknn.base.acuitylib.optimize.rules.merge_layer
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\rknn\base\acuitylib\layer\__init__.py", line 2, in <module>
    from acuitylib.layer.add import *
  File "rknn\base\acuitylib\layer\add.py", line 1, in init rknn.base.acuitylib.layer.add
  File "rknn\base\acuitylib\layer\acuitylayer.py", line 3, in init rknn.base.acuitylib.layer.acuitylayer
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\tensorflow\__init__.py", line 98, in <module>
    from tensorflow_core import *
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\tensorflow_core\__init__.py", line 40, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\tensorflow\__init__.py", line 50, in __getattr__
    module = self._load()
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\tensorflow\__init__.py", line 44, in _load
    module = _importlib.import_module(self.__name__)
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\tensorflow_core\python\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 30, in <module>
    self_check.preload_check()
  File "D:\Sales\Customer-Rockchip\RK1808\RK1808\example\rknn_win_env\lib\site-packages\tensorflow_core\python\platform\self_check.py", line 55, in preload_check
    % build_info.msvcp_dll_name)
ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. You may install this DLL by downloading Visual C++ 2015 Redistributable Update 3 from this URL: https://www.microsoft.com/en-us/download/details.aspx?id=53587
(rknn_win_env) D:\Sales\Customer-Rockchip\RK1808\RK1808\example\yolov3>call:deactivate
请按任意键继续. . .








作者: awiueret    时间: 2019-10-25 14:54
python -m pip install --upgrade pip 升级一下即可
作者: troy    时间: 2019-10-25 15:14
本帖最后由 troy 于 2019-10-25 15:17 编辑

你这个是win10版本吧,win10某些系统版本会缺失运行库,你安装这里面的vc_redist.x64.exe试试。https://eyun.baidu.com/s/3mjEVHFi

或者你安装软件的出错提示操作也可以:
ImportError: Could not find 'msvcp140.dll'. TensorFlow requires that this DLL be installed in a directory that is named in your %PATH% environment variable. You may install this DLL by downloading Visual C++ 2015 Redistributable Update 3 from this URL: https://www.microsoft.com/en-us/download/details.aspx?id=53587


作者: awiueret    时间: 2019-10-25 15:54
troy 发表于 2019-10-25 15:14
你这个是win10版本吧,win10某些系统版本会缺失运行库,你安装这里面的vc_redist.x64.exe试试。https://eyu ...

安装包后,可以了谢谢




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3