【问题标题】:pyinstaller: command not foundpyinstaller:找不到命令
【发布时间】:2020-10-09 15:35:05
【问题描述】:

我正在尝试在ubuntu 18.04 上安装pyinstaller。安装后使用

pip install pyinstaller

当我跑步时

pyinstaller myscript.py

我得到了错误

pyinstaller:command not found

我检查了this 的答案,但不明白。一步一步的澄清会很棒。

【问题讨论】:

  • 链接线程中的第一个答案应该可以工作(这是运行使用 pip 安装的模块的推荐方法)。也许它对你不起作用,因为 pip 是 Python 2 的 pip 而你的 python 是 Python 3。请将命令 pip --versionpython --version 的输出添加到您的问题中。

标签: pyinstaller


【解决方案1】:

对我有用的是-

运行脚本:(在您的项目文件夹中,打开终端然后执行 -)

pyinstaller --specpath ./dist --distpath ./dist --workpath ./dist --onefile ./src/run.py

【讨论】:

    猜你喜欢
    • 2019-05-16
    • 2018-12-15
    • 1970-01-01
    • 1970-01-01
    • 2017-02-02
    • 2013-07-13
    • 2014-10-31
    • 1970-01-01
    相关资源
    最近更新 更多