【问题标题】:Pyinstaller raises error: system cannot access the filePyinstaller 报错:系统无法访问文件
【发布时间】:2020-08-21 18:50:00
【问题描述】:

我在使用 pyinstaller 生成可执行文件时遇到了一些问题。使用命令pyinstaller --onefile "filename.py"后报错,提示系统无法访问该文件,如下:

以前有人处理过这样的问题吗?

【问题讨论】:

    标签: python pygame pyinstaller


    【解决方案1】:

    Pyinstaller 会读取您编写的 Python 脚本。对于大多数程序,这可以通过以下方式完成:pyinstaller yourscript.py
    但如果它不适合您,请尝试使用:pyinstaller --onefile --windowed yourscript.py

    【讨论】:

      猜你喜欢
      • 2021-04-16
      • 1970-01-01
      • 2020-11-20
      • 2014-02-21
      • 2017-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多