|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
已经pip了 pyinstaller
PS C:\Users\Administrator\Desktop\Python\.vscode\ui> cd E:\Python\.vscode\ui
PS E:\Python\.vscode\ui> pyinstaller -F ui.py
ui.py是我要打包的文件,结果报错“pyinstaller : 无法将“pyinstaller”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
所在位置 行:1 字符: 1”
launch.jason里我也配置了路径
- {
-
- // Use IntelliSense to learn about possible attributes.
- // Hover to view descriptions of existing attributes.
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": [
-
-
- {
- "name": "Python: 当前文件",
- "type": "python",
- "request": "launch",
- "program": "${file}",
- "console": "integratedTerminal",
- "env": {
- "PATH": "C:\\Users\\Administrator\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python39\\Scripts\"
- },
- "justMyCode": true
-
- }
-
- ]
-
- }
复制代码
另外还有有问题,我要生成exe的py文件import了另外一个py文件,这个会自动一起打包吗? |
|