2018-01-06 11:18:15 +00:00
|
|
|
Quick Installation
|
|
|
|
==================
|
|
|
|
|
|
|
|
The most straightforward and recommended way to install or upgrade Pyrogram is by using **pip**:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2018-02-27 17:15:37 +00:00
|
|
|
$ pip3 install --upgrade pyrogram
|
2018-01-06 11:18:15 +00:00
|
|
|
|
2018-02-17 15:25:05 +00:00
|
|
|
Or, with TgCrypto_:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2018-02-27 17:15:37 +00:00
|
|
|
$ pip3 install --upgrade pyrogram[tgcrypto]
|
2018-01-11 17:14:26 +00:00
|
|
|
|
2018-01-06 11:18:15 +00:00
|
|
|
Bleeding Edge
|
|
|
|
-------------
|
|
|
|
|
|
|
|
If you want the latest development version of the library, you can either install it automatically with:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2018-02-27 17:15:37 +00:00
|
|
|
$ pip3 install --upgrade git+https://github.com/pyrogram/pyrogram.git
|
2018-01-06 11:18:15 +00:00
|
|
|
|
2018-02-27 17:15:37 +00:00
|
|
|
Or manually, using:
|
2018-01-06 11:18:15 +00:00
|
|
|
|
|
|
|
.. 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-03-23 11:56:17 +00:00
|
|
|
'0.6.4'
|
2018-02-17 15:25:05 +00:00
|
|
|
|
|
|
|
.. _TgCrypto: https://docs.pyrogram.ml/resources/TgCrypto
|