pip相关
从自己搭的源下载flask-wtf
时,提示ERROR: Cannot unpack file /private/var/folders/89/t90wx2gs44dbv4_sx6vdj2mw0000gn/T/pip-unpack-gmrl3v_9/simple.htm (downloaded from /private/var/folders/89/t90wx2gs44dbv4_sx6vdj2mw0000gn/T/pip-req-build-5znzrjo3, content-type: text/html); cannot detect archive format ERROR: Cannot determine archive format of /private/var/folders/89/t90wx2gs44dbv4_sx6vdj2mw0000gn/T/pip-req-build-5znzrjo3
解决: 安装命令由-i
改为--index-url
:
pip3 install --index-url http://xx.xx.xx.xx:8081/repository/my_group/simple flask-wtf --trusted-host xx.xx.xx.xx
websocket相关
提示: ImportError: cannot import name 'create_connection' from 'websocket'
原因: 在使用create_connection
之前要安装 websocket_client
解决: pip install websocket_client
网友评论