加载tensorflow项目时出现此错误

时间:2018-10-18 07:27:09

标签: python tensorflow github flask websocket

https://github.com/victordibia/skyfall安装tensorflow python项目时出错 首先,我尝试安装我得到的无法检测到'git + https://github.com/dpallot/simple-websocket-server.git'的需求名称的文件,请指定#egg = your_package_name 错误

然后我删除了txt文件的最后一行,然后得到了

回溯(最近通话最近):   在第18行的文件“ app.py”中     从utils导入web_socket_server   文件“ C:\ Users \ anurag \ Downloads \ skyfall-master \ utils \ web_socket_server.py”,第4行,在     从SimpleWebSocketServer导入SimpleWebSocketServer,WebSocket ModuleNotFoundError:没有名为“ SimpleWebSocketServer”的模块

之后,我安装了git,现在得到了

回溯(最近通话最近):   在第19行的文件“ app.py”中     从utils import web_socket_client   文件“ C:\ Users \ anurag \ Downloads \ skyfall-master \ utils \ web_socket_client.py”,第8行,在     从websocket导入WebSocketException,WebSocketConnectionClosedException ImportError:无法导入名称“ WebSocketException”

1 个答案:

答案 0 :(得分:0)

该错误表示您尚未安装此软件包:https://github.com/dpallot/simple-websocket-server

尝试使用此方法进行安装(您必须安装pip,还必须安装git),然后再次运行该项目:

python -m pip install git+https://github.com/dpallot/simple-websocket-server.git