Browse Source

打包为exe

gavin.chen 2 years ago
parent
commit
74c48e970f
2 changed files with 7 additions and 1 deletions
  1. 7 1
      README.md
  2. BIN
      web_socket_server.exe

+ 7 - 1
README.md

@@ -9,4 +9,10 @@
 python .\web_socket_server.py
 ```
 
-![image.png](https://tva1.sinaimg.cn/large/007e6d0Xgy1h9cvus4vsej30gx0tp10e.jpg)
+![image.png](https://tva1.sinaimg.cn/large/007e6d0Xgy1h9cvus4vsej30gx0tp10e.jpg)
+
+打包exe
+```
+pip3 install pyinstaller
+pyinstaller .\web_socket_server.py -F
+```

BIN
web_socket_server.exe