所以,我一直在用套接字和玩偶制作这个游戏,现在我想把它发送到另一台电脑上。我不想按原样发送文件,而是可以在不下载和安装任何新文件的情况下运行的可执行文件。
我试过使用pyinstaller,但是它抛出了一个AssertionError
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PyInstaller/utils/osx.py", line 195, in fix_exe_for_code_signing
assert len(sign_sec)
我有一些代码,它与原始代码一起工作,但一旦我用pyinstaller将其转换为可执行文件,我得到了requests.packages.urllib3.exceptions.SSLError: [Error 2] no such file or directory,它总是与原始代码一起工作,但不与pyinstaller一起工作 尝试使用来自Python2和python3的请求,在多台PC上尝试。 我希望它在使用带有pyinstaller的.exe时执行代码
我使用pyinstaller从我的.py文件创建了一个可执行文件。 从一秒到另一秒,它开始不工作了。当我安装pyinstaller时,会出现下一个警告: WARNING: The scripts pyi-archive_viewer.exe, pyi-bindepend.exe, pyi-grab_version.exe, pyi-makespec.exe, pyi-set_version.exe and pyinstaller.exe are installed in 'C:\Users\gergr\AppData\Local\Packages\PythonSoftwareFoun
我编写了一个python脚本来检查GCS中的文件,它使用wxpython来生成GUI。为了进行身份验证,我采用了这种方式(遵循Google示例代码-> 中的方式):
flow = flow_from_clientsecrets(CLIENT_SECRETS_FILE,
# the secrets file I put in same folder
scope=scope,
message=MISSIN
On PC1,我有一个程序中使用了A B C包,我想通过Pyinstaller将该程序与包A B(出于某种原因不包括C)一起打包,以获得另一台安装了python和包C的机器PC2,我希望在PC2上运行这个"main.exe“(未嵌入C包),在此期间,在PC2上安装的软件包C称为.。
这可以实现吗?怎么做呢?
我在PC1上按:pyinstaller main.py --exclude-module C打包程序,并且如预期的那样,未能在PC2上使用ModuleNotFoundError: No module named 'C'执行main.exe,因为安装在PC2上的软件包