Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 780
George Sovetov Avatar asked Apr 06 '15 13:04

George Sovetov


People also ask

What is the best version of Python for Windows 10?

It is recommended to install the latest version of Python, which is 3.7. 3 at the time of writing this article.

Which version of Python should I download?

For the sake of compatibility with third-party modules, it is always safest to choose a Python version that is one major point revision behind the current one. At the time of this writing, Python 3.8. 1 is the most current version. The safe bet, then, is to use the latest update of Python 3.7 (in this case, Python 3.7.

Where is Python installed on Windows by default?

Python can be installed in the Program Files directory, where all the other Windows apps are installed by default. It is an excellent choice for people who want to install Python for more than one user at once.


Video Answer


1 Answers

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.

like image 168
stonebig Avatar answered Sep 19 '22 14:09

stonebig