2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-25 11:28:05 +00:00
pyrogram/docs/source/start/QuickInstallation.rst

42 lines
942 B
ReStructuredText
Raw Normal View History

2018-01-06 12:18:15 +01:00
Quick Installation
==================
The most straightforward and recommended way to install or upgrade Pyrogram is by using **pip**:
.. code-block:: bash
$ pip install --upgrade pyrogram
2018-01-11 18:14:26 +01:00
.. important::
Pyrogram only works on Python 3.3 or higher; if your **pip** points to Python 2.x use **pip3** instead.
2018-01-06 12:18:15 +01:00
Bleeding Edge
-------------
If you want the latest development version of the library, you can either install it automatically with:
.. code-block:: bash
2018-01-15 14:29:18 +01:00
$ pip install --upgrade git+https://github.com/pyrogram/pyrogram.git
2018-01-06 12:18:15 +01:00
or manually, using:
.. code-block:: bash
$ git clone https://github.com/pyrogram/pyrogram.git
$ cd pyrogram
$ python setup.py install
Verifying
---------
To verify that Pyrogram is correctly installed, open a Python shell and try to import it.
If no errors show up you are good to go.
.. code-block:: bash
>>> import pyrogram
>>> pyrogram.__version__
2018-02-15 21:49:09 +01:00
'0.6.0'