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 fileTake it
Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 1–5why, one step back1.. _install:23Installation4============5Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 6–7why, one step back6This 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 back8910Distribute & 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>`_::18Merge branch 'develop'Kenneth Reitzbefore adoption81d5997
line 19why, one step back19 $ easy_install requestsMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
line 20why, one step back20Merge branch 'develop' into feature/rewriteKenneth Reitzbefore adoption95336a0
line 21why, one step back21But, 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 back22232425Cheeseshop Mirror26-----------------27Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 28–29why, one step back28If the Cheeseshop is down, you can also install Requests from Kenneth Reitz's29personal `Cheeseshop mirror <http://pip.kreitz.co/>`_::Merge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 30–36why, one step back3031 $ pip install -i http://pip.kreitz.co/simple requests323334Get the Code35------------36Merge branch 'develop'Kenneth Reitzbefore adoption81d5997
line 37why, one step back37Requests is actively developed on GitHub, where the code isMerge branch 'release/0.4.1'Kenneth Reitzbefore adoptionadd6fea
lines 38–52why, one step back38`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/master5152Migrate new docs over.Kenneth Reitzbefore adoption4a7fdef
lines 53–54why, one step back53Once 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 back5556 $ python setup.py installMerge branch 'develop' into feature/rewriteKenneth Reitzbefore adoption95336a0
lines 57–78why, one step back5758.. _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