简体   繁体   English

如果我想在另一台没有安装 python 的机器上运行包含模块的 python 代码,我可以这样做吗?

[英]If I want to run python code that includes modules on another machine that doesn't have python installed, can I do this?

I want to have a usb stick with some of my python scripts, so that I can just take them with me and execute on any machine I am currently using.我想要一个 usb 与我的一些 python 脚本一起使用,这样我就可以随身携带它们并在我当前使用的任何机器上执行。 Is there a way to execude python scripts on a machine that doesn't have python installed?有没有办法在没有安装 python 的机器上执行 python 脚本? I don't want to edit them, just execute.我不想编辑它们,只需执行。 Thanks a lot!非常感谢!

I think for your scenario you may need to create an executable file.我认为对于您的场景,您可能需要创建一个可执行文件。 See this post here.在这里看到这篇文章。 standalone executable 独立可执行文件

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以在未安装python的Windows 7计算机上以Sublime Text 2运行Python吗? - Can I run Python in Sublime Text 2 on a Windows 7 machine that doesn't have python installed? 如何将我的 Python 代码(其中有 pip 模块)发送给没有安装 Python 的朋友? - How can I send my Python Code (Which has pip modules) to a friend who doesn't have Python installed? 我是否需要在我的机器上安装 Python 才能在虚拟环境中运行代码? - Do I need to have Python installed on my machine to run a code in a virtual environment? 我想在 python 中运行小型 Julia 代码/模块。 我该怎么做? - I want to run small Julia code/modules in python. How should I do that? 我如何使用已安装的 python 模块 - How do i use installed python modules 其他人是否需要安装相同的模块才能在 Python 中运行我的代码? - Do others need to have the same modules installed to run my code in Python? 意外安装了Python 3.4.1的两个版本…无法运行任何脚本,无法导入任何模块,如何解决此问题? - Accidentally installed two versions of Python 3.4.1… Can't run any scripts, no modules can import, how can I fix this? 如果我在后台运行,PHP和PYTHON python代码将无法运行 - PHP & PYTHON python code doesn't run if i run in background 如何在没有必需的外部库模块的其他系统上运行Python代码? - How can I run my Python code on other system which doesn't have the required external library module? 打包可以在未安装Python的计算机上运行的Python脚本? - Packaging a Python script that can be run on a computer that doesn't have Python installed?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM