2018-01-06 12:18:15 +01:00
|
|
|
Quick Installation
|
|
|
|
==================
|
|
|
|
|
2018-04-13 10:01:08 +02:00
|
|
|
The easiest way to install and upgrade Pyrogram is by using **pip**:
|
2018-01-06 12:18:15 +01:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2018-02-27 18:15:37 +01:00
|
|
|
$ pip3 install --upgrade pyrogram
|
2018-01-06 12:18:15 +01:00
|
|
|
|
2018-04-11 23:18:17 +02:00
|
|
|
or, with TgCrypto_ (recommended):
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
$ pip3 install --upgrade pyrogram[tgcrypto]
|
|
|
|
|
2018-01-06 12:18:15 +01:00
|
|
|
Bleeding Edge
|
|
|
|
-------------
|
|
|
|
|
2018-03-25 20:40:50 +02:00
|
|
|
If you want the latest development version of the library, you can install it with:
|
2018-01-06 12:18:15 +01:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2018-02-27 18:15:37 +01:00
|
|
|
$ pip3 install --upgrade git+https://github.com/pyrogram/pyrogram.git
|
2018-01-06 12:18:15 +01:00
|
|
|
|
|
|
|
Verifying
|
|
|
|
---------
|
|
|
|
|
2018-04-13 10:01:08 +02:00
|
|
|
To verify that Pyrogram is correctly installed, open a Python shell and import it.
|
2018-03-30 20:08:18 +02:00
|
|
|
If no error shows up you are good to go.
|
2018-01-06 12:18:15 +01:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
>>> import pyrogram
|
|
|
|
>>> pyrogram.__version__
|
2018-03-29 14:04:16 +02:00
|
|
|
'0.6.5'
|
2018-02-17 16:25:05 +01:00
|
|
|
|
|
|
|
.. _TgCrypto: https://docs.pyrogram.ml/resources/TgCrypto
|