add nuitka
Showing
1 changed file
with
13 additions
and
0 deletions
| ... | @@ -70,3 +70,16 @@ | ... | @@ -70,3 +70,16 @@ |
| 70 | ``` | 70 | ``` |
| 71 | python py2so.py -i test -e test,main.py | 71 | python py2so.py -i test -e test,main.py |
| 72 | ``` | 72 | ``` |
| 73 | |||
| 74 | ### 3. nuitka打包 | ||
| 75 | |||
| 76 | - test_project可以通过以下方式,打包成可执行文件或文件夹 | ||
| 77 | ```shell | ||
| 78 | nuitka3 --standalone --onefile --output-dir=out --include-package=websockets main.py | ||
| 79 | ``` | ||
| 80 | |||
| 81 | - 另外一种不打包python环境的方式 | ||
| 82 | ```shell | ||
| 83 | nuitka --standalone --nofollow-imports --include-package=websockets --output-dir=out main.py | ||
| 84 | ``` | ||
| 85 | ... | ... |
-
Please register or sign in to post a comment