MTPyroger/docs/source/intro/install.rst

63 lines
1.7 KiB
ReStructuredText
Raw Normal View History

2019-05-10 14:14:10 +00:00
Install Guide
=============
Being a modern Python library, **Pyrogram** requires Python 3.6+ 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.
- Get **Python 3** from https://www.python.org/downloads/ (or with your package manager).
2019-04-12 13:52:06 +00:00
- Get **pip** by following the instructions at https://pip.pypa.io/en/latest/installing/.
2018-10-14 09:47:30 +00:00
.. important::
Pyrogram supports **Python 3** only, starting from version 3.6. **PyPy** is supported too.
2020-04-01 18:08:46 +00:00
.. contents:: Contents
:backlinks: none
:depth: 1
2020-04-01 18:08:46 +00: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
2019-05-28 14:41:55 +00:00
- or, with :doc:`TgCrypto <../topics/tgcrypto>` as extra requirement (recommended):
.. code-block:: text
2020-03-30 09:47:25 +00:00
$ pip3 install -U pyrogram tgcrypto
Bleeding Edge
-------------
2019-05-16 19:28:34 +00:00
Pyrogram is always evolving, although new releases on PyPI are published only when enough changes are added, but this
doesn't mean you can't try new features right now!
2019-04-12 13:52:06 +00:00
2019-05-16 19:28:34 +00:00
In case you'd like to try out the latest Pyrogram features, the `GitHub repo`_ is always kept updated with new changes;
2020-08-22 14:09:38 +00:00
you can install the development version straight from the ``master`` branch using this command (note "master.zip" in
2019-05-16 19:28:34 +00:00
the link):
.. code-block:: text
2020-08-22 14:09:38 +00: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 16:59:29 +00:00
.. parsed-literal::
>>> import pyrogram
>>> pyrogram.__version__
2019-05-23 16:59:29 +00:00
'|version|'
2019-04-12 13:52:06 +00:00
.. _`Github repo`: http://github.com/pyrogram/pyrogram