Skip to content
Myr

install.rst

This file

Path

docs/user/install.rst

78 lines · 1.9 KiB

Last changed by

Merge branch 'develop' into feature/rewriteKenneth Reitzbefore adoption95336a0

History of this file

Take it

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 1–5why, one step back
1.. _install:
23Installation4============5

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

lines 6–7why, one step back
6This part of the documentation covers the installation of Requests.
7The first step to using any software package is getting it properly installed.

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 8–18why, one step back
8
910Distribute & Pip11----------------1213Installing requests is simple with `pip <http://www.pip-installer.org/>`_::1415 $ pip install requests1617or, with `easy_install <http://pypi.python.org/pypi/setuptools>`_::18

Merge branch 'develop'Kenneth Reitzbefore adoption81d5997

line 19why, one step back
19 $ easy_install requests

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

line 20why, one step back
20

Merge branch 'develop' into feature/rewriteKenneth Reitzbefore adoption95336a0

line 21why, one step back
21But, you really `shouldn't do that <http://www.pip-installer.org/en/latest/other-tools.html#pip-compared-to-easy-install>`_.

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 22–27why, one step back
22
232425Cheeseshop Mirror26-----------------27

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

lines 28–29why, one step back
28If the Cheeseshop is down, you can also install Requests from Kenneth Reitz's
29personal `Cheeseshop mirror <http://pip.kreitz.co/>`_::

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 30–36why, one step back
30
31 $ pip install -i http://pip.kreitz.co/simple requests323334Get the Code35------------36

Merge branch 'develop'Kenneth Reitzbefore adoption81d5997

line 37why, one step back
37Requests is actively developed on GitHub, where the code is

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 38–52why, one step back
38`always available <https://github.com/kennethreitz/requests>`_.
3940You can either clone the public repository::4142 git clone git://github.com/kennethreitz/requests.git4344Download the `tarball <https://github.com/kennethreitz/requests/tarball/master>`_::4546 $ curl -O https://github.com/kennethreitz/requests/tarball/master4748Or, download the `zipball <https://github.com/kennethreitz/requests/zipball/master>`_::4950 $ curl -O https://github.com/kennethreitz/requests/zipball/master5152

Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef

lines 53–54why, one step back
53Once you have a copy of the source, you can embed it in your Python package,
54or install it into your site-packages easily::

Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea

lines 55–56why, one step back
55
56 $ python setup.py install

Merge branch 'develop' into feature/rewriteKenneth Reitzbefore adoption95336a0

lines 57–78why, one step back
57
58.. _gevent:5960Installing Gevent61-----------------6263If you are using the ``requests.async`` module for making concurrent64requests, you need to install gevent.6566To install gevent, you'll need ``libevent``.6768OSX::6970 $ brew install libevent7172Ubuntu::7374 $ apt-get install libevent-dev7576Once you have ``libevent``, you can install ``gevent`` with ``pip``::7778 $ pip install gevent