安装PaddleHub Serving-hub install deploy/hubserving/ocr_system/报错UnboundLocalError: local variable 'version' referenced before assignment
Created by: 22826165
pip install paddlehub/paddlepaddle 安装成功 λ yy-virtual-machine /mnt/PaddleOCR {develop} hub install deploy/hubserving/ocr_system/ grep: warning: GREP_OPTIONS is deprecated; please use an alias or script Traceback (most recent call last): File "/usr/local/python3.5.1/bin/hub", line 8, in sys.exit(main()) File "/usr/local/python3.5.1/lib/python3.5/site-packages/paddlehub/commands/hub.py", line 64, in main command.execute(argv[1:]) File "/usr/local/python3.5.1/lib/python3.5/site-packages/paddlehub/commands/hub.py", line 51, in execute return command.execute(argv[1:]) File "/usr/local/python3.5.1/lib/python3.5/site-packages/paddlehub/commands/install.py", line 54, in execute module_dir=argv[0], extra=extra) File "/usr/local/python3.5.1/lib/python3.5/site-packages/paddlehub/module/manager.py", line 199, in install_module self.all_modules(update=False) File "/usr/local/python3.5.1/lib/python3.5/site-packages/paddlehub/module/manager.py", line 105, in all_modules valid, info = self.check_module_valid(sub_dir_path) File "/usr/local/python3.5.1/lib/python3.5/site-packages/paddlehub/module/manager.py", line 84, in check_module_valid return True, {'version': version, 'name': _item._name} UnboundLocalError: local variable 'version' referenced before assignment