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
1.. _install:23Installation4============56This part of the documentation covers the installation of Requests.7The first step to using any software package is getting it properly installed.8910Distribute & 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>`_::1819 $ easy_install requests2021But, you really `shouldn't do that <http://www.pip-installer.org/en/latest/other-tools.html#pip-compared-to-easy-install>`_.22232425Cheeseshop Mirror26-----------------2728If the Cheeseshop is down, you can also install Requests from Kenneth Reitz's29personal `Cheeseshop mirror <http://pip.kreitz.co/>`_::3031 $ pip install -i http://pip.kreitz.co/simple requests323334Get the Code35------------3637Requests is actively developed on GitHub, where the code is38`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/master515253Once you have a copy of the source, you can embed it in your Python package,54or install it into your site-packages easily::5556 $ python setup.py install5758.. _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