Skip to content
Myr

pip and distribute installation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 3de8de1 · Browse files · 1 file+15 added−11 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+15 added−11 removed

  • other:+15 added−11 removed

1 file+15 added−11 removed

modified:docs/installation.rst+15 added-11 removed
98 unmodified lines
99100This is possible as well, though I do not recommend it. Just run101`easy_install` with root privileges::102103 $ sudo easy_install Flask103 $ sudo pip install Flask104105(On Windows systems, run it in a command-prompt window with administrator106privleges, and leave out `sudo`.)107
1 unmodified line
109Living on the Edge110------------------111112If you want to work with the latest version of Flask, there are two ways: you113can either let `easy_install` pull in the development version, or you can tell113can either let `pip` pull in the development version, or you can tell114it to operate on a git checkout. Either way, virtualenv is recommended.115116Get the git checkout in a new virtualenv and run in development mode::117
19 unmodified lines
137 $ virtualenv env138 $ . env/bin/activate139 New python executable in env/bin/python140 Installing setuptools............done.141 $ easy_install Flask==dev141 $ pip install Flask==dev142 ...143 Finished processing dependencies for Flask==dev144145.. _windows-easy-install:146147`easy_install` on Windows148-------------------------147`pip` and `distribute` on Windows148-----------------------------------149150On Windows, installation of `easy_install` is a little bit trickier, but still151quite easy. The easiest way to do it is to download the `ez_setup.py`_ file152and run it. The easiest way to run the file is to open your downloads folder153and double-click on the file.151quite easy. The easiest way to do it is to download the152`distribute_setup.py`_ file and run it. The easiest way to run the file is to153open your downloads folder and double-click on the file.154155Next, add the `easy_install` command and other Python scripts to the156command search path, by adding your Python installation's Scripts folder157to the `PATH` environment variable. To do that, right-click on the
2 unmodified lines
160"Advanced" tab instead). Then click on the "Environment variables" button.161Finally, double-click on the "Path" variable in the "System variables" section,162and add the path of your Python interpreter's Scripts folder. Be sure to163delimit it from existing values with a semicolon. Assuming you are using164Python 2.6 on the default path, add the following value::164Python 2.7 on the default path, add the following value::165166167 ;C:\Python26\Scripts167 ;C:\Python27\Scripts168169And you are done! To check that it worked, open the Command Prompt and execute170``easy_install``. If you have User Account Control enabled on Windows Vista or171Windows 7, it should prompt you for administrator privileges.172173Now that you have ``easy_install``, you can use it to install ``pip``::174174.. _ez_setup.py: http://peak.telecommunity.com/dist/ez_setup.py175 > easy_install pip176177178.. _distribute_setup.py: http://python-distribute.org/distribute_setup.py