赞
踩
第一 在win7系统里用pyinstaller打包的exe,基本不会出现兼容性问题
命令pip3 install pyinstaller
到项目要运行的代码的那个.py档案(例如testPyinstaller.py),右键copy path,
到项目目录(idea右键show in explorer)
在cmd窗口运行 pyinstaller D:\workspaceForPy\testPyinstaller.idea\testPyinstaller.py
然后项目目录里就有一个dist的文件夹,里面有一个testPyinstaller的文件夹,将这个文件夹压缩后,拿到其他电脑,解压缩后运行里面的testPyinstaller.exe
第二 用docker 加快构建、共享和运行现代应用。
打包以后传到docker hub,对方下载以后跟你一模一样的环境
本人新建一个程序员交流圈子,群主是10年老技术人员,某上市公司的技术负责人,群里面每天会给群友解答疑问,招聘内推,点击即可加入圈子 验证码:cs
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。