Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过Pyinstaller 打包 报错 #43

Closed
oneforgit opened this issue Jan 18, 2019 · 4 comments
Closed

通过Pyinstaller 打包 报错 #43

oneforgit opened this issue Jan 18, 2019 · 4 comments

Comments

@oneforgit
Copy link

bot机器人通过pyinstaller 打包,会报WinError 3
请作者帮忙看一下:


Traceback (most recent call last):
File "bot.py", line 6, in
File "site-packages\nonebot\plugin.py", line 72, in load_builtin_plugins
File "site-packages\nonebot\plugin.py", line 48, in load_plugins
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\king\AppData\Local\Temp\4\_MEI23356\nonebot\plugins'
[18796] Failed to execute script bot

@stdrc
Copy link
Member

stdrc commented Jan 18, 2019

你看一下 C:\Users\king\AppData\Local\Temp\4\_MEI23356\nonebot\plugins 这个文件夹到底在不在?感觉上应该是你虚拟环境没配对?

@oneforgit
Copy link
Author

没有用虚拟环境,所有的包全部安装在本地,不过我的python是安装的是Anaconda3 发行版本,有影响吗?
你电脑上能打包成功吗?

pyinstaller -F c:/xxxx/instance/bot.py

@puti-flower
Copy link

可以hidden或者在py文件里面import,然后重新打包

@puti-flower
Copy link

还有指定数据文件夹才可以

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants