在linux下安装pyinstaller
发布日期:2021-06-30 10:12:16 浏览次数:2 分类:技术文章

本文共 439 字,大约阅读时间需要 1 分钟。

1.pip install pyinstaller

出现错误:

Could not find a version that satisfies the requirement pyinstaller(from version:)   No matching distribution found for pyinstaller。

原因:被国外墙了,使用豆瓣源来下载。

pip install pyinstaller -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

或者

 

pip install pyinstaller -i https://pypi.douban.com/simple/

2.安装成功后,

pyinstaller main.py :即可在本目录生成文件dist

pyinstaller -F main.py :带"-F"是为了生成一个文件dist/main,速度会比上面的方式慢很多。

转载地址:https://islet.blog.csdn.net/article/details/79582612 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Python3的基础数据类型小结
下一篇:linux下查看网卡名字与mac地址源码

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2024年04月05日 16时04分53秒