pyrogram/docs/source/start/QuickInstallation.rst

37 lines
813 B
ReStructuredText
Raw Normal View History

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-04-11 21:18:17 +00:00
or, with TgCrypto_ (recommended):
.. code-block:: bash
$ pip3 install --upgrade pyrogram[tgcrypto]
2018-01-06 11:18:15 +00:00
Bleeding Edge
-------------
2018-03-25 18:40:50 +00:00
If you want the latest development version of the library, you can install it with:
2018-01-06 11:18:15 +00:00
.. 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
Verifying
---------
To verify that Pyrogram is correctly installed, open a Python shell and try to import it.
2018-03-30 18:08:18 +00:00
If no error shows up you are good to go.
2018-01-06 11:18:15 +00:00
.. code-block:: bash
>>> import pyrogram
>>> pyrogram.__version__
2018-03-29 12:04:16 +00:00
'0.6.5'
.. _TgCrypto: https://docs.pyrogram.ml/resources/TgCrypto