What files should i download for python 2.7.13






















Girum Girum 97 1 1 silver badge 12 12 bronze badges. Possible duplicate of installing request module in python 2.

Thank you, Ivan Kolesnikov for editing my error code above, — Girum. Add a comment. Active Oldest Votes. You need to either run this program as superuser or install this package locally with the --user flag import pip; pip. Morreski Morreski 1 1 silver badge 5 5 bronze badges. Thank you very much Morreski, I was really frustrated. It worked when I used the "--user" flag. Debugging the setup script may also be of interest. In the best case, someone will have prepared a special version of the module distribution you want to install that is targeted specifically at your platform and is installed just like any other software on your platform.

Of course, things will not always be that easy. Installing from a source distribution is not too hard, as long as the modules are packaged in the standard way. The bulk of this document is about building and installing modules from standard source distributions. If you download a module source distribution, you can tell pretty quickly if it was packaged and distributed in the standard way, i.

Next, the archive will unpack into a similarly-named directory: foo Additionally, the distribution will contain a setup script setup. Or rather, the above command is everything you need to get out of this manual. As described in section The new standard: Distutils , building and installing a module distribution using the Distutils is usually one simple command to run from a terminal:. You should always run the setup command from the distribution root directory, i.

Then, open a command prompt window and run:. Running setup. If you prefer to work incrementally—especially useful if you want to customize the build process, or if things are going wrong—you can use the setup script to do one thing at a time.

This is particularly helpful when the build and install will be done by different users—for example, you might want to build a module distribution and hand it off to a system administrator for installation or do it yourself, with super-user privileges.

For example, you can build everything in one step, and then install everything in a second step, by invoking the setup script twice:. If you do this, you will notice that running the install command first runs the build command, which—in this case—quickly notices that it has nothing to do, since everything in the build directory is up-to-date. As implied above, the build command is responsible for putting the files to install into a build directory. For example:. Or you could do this permanently with a directive in your system or personal Distutils configuration file; see section Distutils Configuration Files.

In that case, the temp. In either case, the lib or lib. In the future, more directories will be added to handle Python scripts, documentation, binary executables, and whatever else is needed to handle the job of installing Python modules and applications.

You can find out what your Python installation uses for prefix and exec-prefix by running Python in interactive mode and typing a few simple commands. Under Unix, just type python at the shell prompt. Once the interpreter is started, you type Python code at the prompt. For example, on my Linux system, I type the three Python statements shown below, and get the output as shown, to find out my prefix and exec-prefix :.

A few other placeholders are used in this document: X. Y stands for the version of Python, for example 2. Dots and capitalization are important in the paths; for example, a value that uses python2.

If you want to customize your installation directories more heavily, see section Custom Installation on custom installations. Often, it is necessary or desirable to install modules to a location other than the standard location for third-party Python modules. For example, on a Unix system you might not have permission to write to the standard third-party module directory. Or you might wish to try out a module before making it a standard part of your local Python installation.

This is especially true when upgrading a distribution already present: you want to make sure your existing base of scripts still works with the new version before actually upgrading. The Distutils install command is designed to make installing module distributions to an alternate location simple and painless. The basic idea is that you supply a base directory for the installation, and the install command picks a set of directories called an installation scheme under this base directory in which to install files.

The details differ across platforms, so read whichever of the following sections applies to you. It is enabled with a simple option:. Actual results: Neither of the folders exist. We might be able to see what's happening better with that.

I'm not sure we've ever supported installing Python 2. I can successfully install Python 2. Seems like the custom action is running as the original user and not admin. This should just be a flag on the command, though since we're building the msi without any tools it'll take some effort to figure that out.

Personally I'd rather say it's not supported. Note that the python. MacOS from MacOS after For Debian or Ubuntu , install the python3.

For other systems , or if you want to install from source , see the general download page. Unable to edit the page?



0コメント

  • 1000 / 1000