2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-22 09:57:19 +00:00
pyrogram/docs/source/intro/install.rst

51 lines
1.1 KiB
ReStructuredText
Raw Normal View History

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