在不安装的情况下使用Python [英] Use Python without installing

查看:132
本文介绍了在不安装的情况下使用Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Python脚本安装几个组件的安装程序.我不想在用户计算机上安装Python(如果他们还没有的话),并且我也不想将Python安装作为使用安装程序的先决条件.有没有一种方法可以下载Python,而无需使用安装程序,而只从可在安装完成后轻松删除的目录中运行它?

I have an installer which uses a Python script to install several components. I do not want to install Python on the users computer if they do not already have it and I also do not want having Python installed to be a prerequisite for using my installer. Is there a way of downloading Python without using the installer and just running it from a directory which can be easily removed after the installation is complete?

推荐答案

便携式Python 是易于使用的工具在Windows上.如果要创建.exe程序,请使用 PyInstaller 进行编译.它们可以相互叠加工作,您可以使用Portable Python进行编译(制作.exes),也可以使用Portable Python 3.

Portable Python is an easy tool to use on Windows. If you want to create .exe programs use PyInstaller to compile them. They can both work on top of each other, you can compile (make .exes) using Portable Python, Portable Python 3 is also available.

这篇关于在不安装的情况下使用Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆