Как установить python на флешку

от admin

Portable Python — все свое ношу с собой!

Если встретить linux-дистрибутив без интерпретатора python почти невозможно, то по отношению к Windows ситуация диаметрально противоположная. А питон ведь кроссплатформенный!
Конечно, можно поставить интерпретатор и на windows, но если хочеться запустить любимый скрипт на чужом/рабочем компьютере, под управлением данной ос?
Что, тоже мучиться с установкой? А если на машину нельзя/нецелесообразно ставить ПО. Да и время на это тратить, ради запуска одного скрипта не хочется?
Тогда, на помощь нам придет Portable Python!

  • Собственно сам интерпретатор версии 2.5, способный запускаться прямо с флешки, без каких либо настроек/установок.
  • Django 0.96 — Высокоуровневый Web-фреймворк удобный в разработке cайтов с базами данных (SQLite в комплекте).
  • Scite 1.71 — неплохой текстовый редактор с подсветкой синтаксиса и поддержкой табов для документов.

Внимание! Проект находится в стади beta.
Также, пока что нет возможности установить рабочую папку для скриптов.

Личные впечатления:
Я фактически только изучаю питон, гуи-шных программ под портативным интерпретатором запускать не пробовал, но все мои нехитрые скрипты работают нормально. Для меня он полезен, поскольку будучи жертвой нашей прекрасной системы образования, мне сейчас приходится по четыре с половиной часа сидеть за компьютером, на котором опция установки ПО, заблокирована админом, и заниматься учебной ерундой. Когда с ерундой покончено, или иногда вместо нее, я открываю учебник и практикуюсь в питоне(уходить с «учебно-рабочего места» раньше времени тоже обычно не разрешают).

Надеюсь вам эта сборка тоже пригодится.

Как установить python на флешку

This project is a python CLI that aims to make compiling portable python binaries automatable.

What is a “portable python”?

It’s a binary python distribution (.tar.gz or .zip) that can be decompressed in any folder, and used from there without further ado (ie: no need to run an “installer” and things like that).

The idea here is to allow for automated systems to:

  • Easily obtain a python binary, that can be used in sandboxes / workstations / laptops / instances…
  • Have an open source tool that can compile such portable pythons reliably, without having to worry about the compilation part.
  • Be able to inspect any python installation, and point out how portable it is, which shared or non-standard libraries it is using
Guiding principles
  • Focuses on just one thing: compile a portable python, and validate that it is indeed portable, produce outcome in (configurable) ./dist/ folder and that’s it
  • Only the last few non-EOL versions of python are supported (no historical stuff)
  • As time goes on, the code of this tool will evolve so that the latest pythons keep building (but won’t worry that older versions still keep building)
  • C compilation is done as simply as possible: no “patching” of any sort, rely solely on the upstream make/configure scripts, typically via stuff like --enable-shared=no
  • Builds are validated, an important part of the effort was to write up code that is able to inspect a python installation and detect whether it is portable or not (and why not if so).
  • cpython is initially supported, but aiming to compile any python family in the future (pypy, conda, …)
  • Cross-compilation would be cool, but only if upstream supports it (ie: only if doable via stuff like ./configure --host=. — no on-the-fly patching allowed)

For this repo itself:

Related Posts