Is there portable Python 2.7 Windows distribution without any libraries included?

George Sovetov picture George Sovetov · Apr 6, 2015 · Viewed 27.2k times · Source

Each Python distribution I found contains a lot of libs I don't need (numpy, scipy, PyQt etc.) I am looking for portable CPython analogue that doesn't require installation, doesn't touch anything but its directory, and is small to download over a slow or metered Internet connection.

  • I don't mean specifically http://portablepython.com/. I can choose packages to unpack manually. There is no way to make installer silent.
  • There is https://winpython.github.io/. I have to unpack 1.5GB first and uninstall unused packages.
  • PyPy -- http://pypy.org/. As far as I understand, is portable too but it seems it don't support all packages I need. (I will investigate that later.)

Why I need that. Project is required to be copy-deployed on Windows machines with no prerequisites. Second, building project directory with Python interpreter and packages (including mine) must be completely automated and should use project's repository and files that can be easily downloaded from Internet.

Answer

stonebig picture stonebig · Apr 6, 2015

suggestion:

  • install a winpython,

  • remove all packages you don't want,

  • add all packages you want,

  • zip the result, and unzip it on any PCs.