多平台便携式python [英] multi platform portable python

查看:195
本文介绍了多平台便携式python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在虚拟环境中的闪存驱动器上安装python,以便无论我身在何处都可以开发代码.是否可以通过这种方式来使我可以在Windows/Mac/Linux计算机上使用闪存驱动器?

I want to install python on a flash drive in a virtual environment so that I can develop code wherever I am. Is this possible to do in such a way that I can use my flash drive on windows/mac/linux computers?

推荐答案

  • 对于Windows,请转至Portable Python( http://PortablePython.com )以查看您拥有的各种选项,
  • 对于Linux和Mac,您不需要将其安装在USB驱动器上,因为这些系统通常预装了Python.如果您需要针对这些系统的特定程序包,请将其与USB一起使用,并通过命令行脚本将其加载到这些系统上的virtualenv中的一个调用中,就可以了!
    • For windows, head to Portable Python (http://PortablePython.com) to see various options you have,
    • For linux and Mac you don't need to install it on USB drive as those systems usually come with Python pre-installed. If you need specific packages for those systems, bring them on USB together with a command line script that can load them with one call in virtualenv on those systems and you are good to go !
    • 请注意,这决不是100%的项目符号证明,这取决于您所使用/带来的软件包的Python版本.

      Be aware that this is never 100% bullet proof as you are depending on Python version you are using/bringing packages for.

      这篇关于多平台便携式python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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