2019-05-10 14:14:10 +00:00
|
|
|
Install Guide
|
|
|
|
=============
|
2018-06-05 14:36:37 +00:00
|
|
|
|
2022-01-07 09:18:51 +00:00
|
|
|
Being a modern Python framework, Pyrogram requires an up to date version of Python to be installed in your system.
|
2019-05-10 14:14:10 +00:00
|
|
|
We recommend using the latest versions of both Python 3 and pip.
|
2018-06-05 14:36:37 +00:00
|
|
|
|
2020-04-01 18:08:46 +00:00
|
|
|
.. contents:: Contents
|
|
|
|
:backlinks: none
|
2020-08-22 06:05:05 +00:00
|
|
|
:depth: 1
|
2020-04-01 18:08:46 +00:00
|
|
|
:local:
|
|
|
|
|
|
|
|
-----
|
|
|
|
|
2018-06-05 14:36:37 +00:00
|
|
|
Install Pyrogram
|
|
|
|
----------------
|
|
|
|
|
2018-10-16 23:07:33 +00:00
|
|
|
- The easiest way to install and upgrade Pyrogram to its latest stable version is by using **pip**:
|
2018-06-05 14:36:37 +00:00
|
|
|
|
2018-10-16 23:07:33 +00:00
|
|
|
.. code-block:: text
|
2018-06-05 14:36:37 +00:00
|
|
|
|
2018-12-31 12:22:14 +00:00
|
|
|
$ pip3 install -U pyrogram
|
2018-06-05 14:36:37 +00:00
|
|
|
|
2022-04-24 09:56:07 +00:00
|
|
|
- or, with :doc:`TgCrypto <../topics/speedups>` as extra requirement (recommended):
|
2018-06-05 14:36:37 +00:00
|
|
|
|
2018-10-16 23:07:33 +00:00
|
|
|
.. code-block:: text
|
2018-06-05 14:36:37 +00:00
|
|
|
|
2020-03-30 09:47:25 +00:00
|
|
|
$ pip3 install -U pyrogram tgcrypto
|
2018-06-05 14:36:37 +00:00
|
|
|
|
|
|
|
Bleeding Edge
|
|
|
|
-------------
|
|
|
|
|
2022-01-07 09:18:51 +00:00
|
|
|
You can install the development version from the git ``master`` branch using this command:
|
2018-06-05 14:36:37 +00:00
|
|
|
|
2018-10-16 23:07:33 +00:00
|
|
|
.. code-block:: text
|
2018-06-05 14:36:37 +00:00
|
|
|
|
2020-08-22 14:09:38 +00:00
|
|
|
$ pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip
|
2018-06-05 14:36:37 +00:00
|
|
|
|
|
|
|
Verifying
|
|
|
|
---------
|
|
|
|
|
|
|
|
To verify that Pyrogram is correctly installed, open a Python shell and import it.
|
|
|
|
If no error shows up you are good to go.
|
|
|
|
|
2019-05-23 16:59:29 +00:00
|
|
|
.. parsed-literal::
|
2018-06-05 14:36:37 +00:00
|
|
|
|
|
|
|
>>> import pyrogram
|
|
|
|
>>> pyrogram.__version__
|
2022-01-07 09:18:51 +00:00
|
|
|
'x.y.z'
|
2018-06-05 14:36:37 +00:00
|
|
|
|
2019-04-12 13:52:06 +00:00
|
|
|
.. _`Github repo`: http://github.com/pyrogram/pyrogram
|