mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-09-19 18:32:47 +03:00
Update installation.rst
This commit is contained in:
parent
96d9a58029
commit
d4d47d40e9
|
@ -10,21 +10,21 @@ Automatic Installation
|
||||||
|
|
||||||
To install Telethon, simply do:
|
To install Telethon, simply do:
|
||||||
|
|
||||||
``pip install telethon``
|
``pip3 install telethon``
|
||||||
|
|
||||||
If you get something like ``"SyntaxError: invalid syntax"`` or any other
|
If you get something like ``"Command not found"`` or any other
|
||||||
error while installing/importing the library, it's probably because ``pip``
|
error while installing/importing the library, it's probably because you only have python3.
|
||||||
defaults to Python 2, which is not supported. Use ``pip3`` instead.
|
Try using just ``pip``
|
||||||
|
|
||||||
If you already have the library installed, upgrade with:
|
If you already have the library installed, upgrade with:
|
||||||
|
|
||||||
``pip install --upgrade telethon``
|
``pip3 install --upgrade telethon``
|
||||||
|
|
||||||
You can also install the library directly from GitHub or a fork:
|
You can also install the library directly from GitHub or a fork:
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
# pip install git+https://github.com/LonamiWebs/Telethon.git
|
# pip3 install git+https://github.com/LonamiWebs/Telethon.git
|
||||||
or
|
or
|
||||||
$ git clone https://github.com/LonamiWebs/Telethon.git
|
$ git clone https://github.com/LonamiWebs/Telethon.git
|
||||||
$ cd Telethon/
|
$ cd Telethon/
|
||||||
|
@ -39,7 +39,7 @@ Manual Installation
|
||||||
1. Install the required ``pyaes`` (`GitHub`__ | `PyPi`__) and
|
1. Install the required ``pyaes`` (`GitHub`__ | `PyPi`__) and
|
||||||
``rsa`` (`GitHub`__ | `PyPi`__) modules:
|
``rsa`` (`GitHub`__ | `PyPi`__) modules:
|
||||||
|
|
||||||
``sudo -H pip install pyaes rsa``
|
``sudo -H pip3 install pyaes rsa``
|
||||||
|
|
||||||
2. Clone Telethon's GitHub repository:
|
2. Clone Telethon's GitHub repository:
|
||||||
``git clone https://github.com/LonamiWebs/Telethon.git``
|
``git clone https://github.com/LonamiWebs/Telethon.git``
|
||||||
|
|
Loading…
Reference in New Issue
Block a user