Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
978 views
in Technique[技术] by (71.8m points)

pyinstaller 出现 “系统找不到指定的路径。”

  1. 想问Python在什么情况下会出现这个错误?还是模块自定义的错误?
  2. 被打包成 exe 该如何调试,找出错误?
  3. PyInstaller 的基本原理是什么,将所有的源代码整合成一个文件(pyd,exe)?

    3.1 如果一个模块(clone git)里面有二进制文件,该如何打包。

    3.2 模块是以相对与模块本身所在路径进行二进制文件查找,该如何解决这个问题?(假设 3 成立)

    3.3 是不是要将模块所需要的文件移动到 app.exe 同目录下?


# app.py 代码中
import src.A
import src.B
# print( src.A, src.B )
<module 'src.gui' from 'app\src\A.pyc'> <module 'src.spy' from 'app\src\B.pyc'>
系统找不到指定的路径。

这是错误吗?

src 目录已经copy 到目标中了,相对路径(app.exe )应该是对的


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

百度pyinstaller打包


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...