From 9780b1fcb0a124d8ae01e424649fc8fddc50b1b8 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Mon, 19 Aug 2019 23:19:52 +0300 Subject: Fixes * Remove Scripts directory The Scripts directory contains executables that won't work on user system. The user needs to run ensurepip to make recreate the scripts. * Update README.md * Check if Scripts directory exists * Add logging to download.ps1 * Add /fa argument to msiexec command line Try to force installation even if there is a previous installation * Uninstall previous 2.x python --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 6760537..5e63e7d 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,25 @@ If you answered yes at least once, then this project will have you covered! This project contains a bunch of Python releases packaged in zip archives. The archives are created from files installed by the official Python installer, nothing else. Each version will have a 32-bit and 64-bit version available. Check out [releases](https://github.com/oswjk/portablepython/releases) for downloads! + +# Recreating scripts + +A normal Python installation can be configured to have a Scripts directory that contains `pip` and `easy_install` scripts that you can invoke directly. + +The portable zip file does not contain this directory. If you need it, it is easy to recreate with the `ensurepip` package. + +First, you need to uninstall pip and setuptools: + +``` +python -m pip uninstall setuptools pip +``` + +Now you can run the `ensurepip` package to install `pip` and `setuptools` and to create the scripts: + +``` +python -m ensurepip --default-pip +``` + +Make sure that the Python you are invoking, is the correct one! You can do this for example by specifying the full path to the Python executable when entering the commands above. + +That should be all! -- cgit v1.2.3