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
Provenance
- Commit
4a75198- Tree
f2cb3eb- Author
Kenneth Reitz <me@kennethreitz.com>- Committer
Kenneth Reitz <me@kennethreitz.com>- Parent
3de8de1
1 file changed+15 added−11 removed
modified:docs/installation.rst+15 added-11 removed
98 unmodified lines99 100 This is possible as well, though I do not recommend it. Just run101 `easy_install` with root privileges::102 103- $ sudo easy_install Flask103+ $ sudo pip install Flask104 105 (On Windows systems, run it in a command-prompt window with administrator106 privleges, and leave out `sudo`.)107 1 unmodified line109 Living on the Edge110 ------------------111 112 If you want to work with the latest version of Flask, there are two ways: you113-can either let `easy_install` pull in the development version, or you can tell113+can either let `pip` pull in the development version, or you can tell114 it to operate on a git checkout. Either way, virtualenv is recommended.115 116 Get the git checkout in a new virtualenv and run in development mode::117 19 unmodified lines137 $ 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==dev144 145 .. _windows-easy-install:146 147-`easy_install` on Windows148--------------------------147+`pip` and `distribute` on Windows148+-----------------------------------149 150 On Windows, installation of `easy_install` is a little bit trickier, but still151-quite easy. The easiest way to do it is to download the `ez_setup.py`_ file152-and run it. The easiest way to run the file is to open your downloads folder153-and double-click on the file.151+quite 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 to153+open your downloads folder and double-click on the file.154 155 Next, add the `easy_install` command and other Python scripts to the156 command search path, by adding your Python installation's Scripts folder157 to the `PATH` environment variable. To do that, right-click on the2 unmodified lines160 "Advanced" tab instead). Then click on the "Environment variables" button.161 Finally, double-click on the "Path" variable in the "System variables" section,162 and add the path of your Python interpreter's Scripts folder. Be sure to163 delimit it from existing values with a semicolon. Assuming you are using164-Python 2.6 on the default path, add the following value::164+Python 2.7 on the default path, add the following value::165 166 167- ;C:\Python26\Scripts167+ ;C:\Python27\Scripts168 169 And 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 or171 Windows 7, it should prompt you for administrator privileges.172 173+Now that you have ``easy_install``, you can use it to install ``pip``::174 174-.. _ez_setup.py: http://peak.telecommunity.com/dist/ez_setup.py175+ > easy_install pip176+177+178+.. _distribute_setup.py: http://python-distribute.org/distribute_setup.py