mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-12 09:02:24 +03:00
Mention how to install from GitHub
parent
7520218e46
commit
71fc5b9c53
|
@ -1,11 +1,22 @@
|
||||||
```bash
|
```
|
||||||
pip install telethon
|
# pip install telethon
|
||||||
```
|
```
|
||||||
|
|
||||||
If you get something like `"SyntaxError: invalid syntax"` or any other error while installing, it's probably because `pip` defaults to Python 2, which is **not supported**. Use `pip3` instead.
|
If you get something like `"SyntaxError: invalid syntax"` or any other error while installing, it's probably because `pip` defaults to Python 2, which is **not supported**. Use `pip3` instead.
|
||||||
|
|
||||||
If you already have the library installed, upgrade with `pip install --upgrade telethon`.
|
If you already have the library installed, upgrade with `pip install --upgrade telethon`.
|
||||||
|
|
||||||
|
You can also install the library directly from GitHub or a fork:
|
||||||
|
```
|
||||||
|
# pip install git+https://github.com/LonamiWebs/Telethon.git
|
||||||
|
or
|
||||||
|
$ git clone https://github.com/LonamiWebs/Telethon.git
|
||||||
|
$ cd Telethon/
|
||||||
|
# pip install -Ue .
|
||||||
|
```
|
||||||
|
|
||||||
|
If you don't have root access, simply pass the `--user` flag to the `pip` command.
|
||||||
|
|
||||||
## Manual installation
|
## Manual installation
|
||||||
|
|
||||||
1. Install the required `pyaes` ([GitHub](https://github.com/ricmoo/pyaes)|[PyPi](https://pypi.python.org/pypi/pyaes)) and `rsa` ([GitHub](https://github.com/sybrenstuvel/python-rsa/)|[PyPi](https://pypi.python.org/pypi/rsa/3.4.2)) modules: `sudo -H pip install pyaes rsa`
|
1. Install the required `pyaes` ([GitHub](https://github.com/ricmoo/pyaes)|[PyPi](https://pypi.python.org/pypi/pyaes)) and `rsa` ([GitHub](https://github.com/sybrenstuvel/python-rsa/)|[PyPi](https://pypi.python.org/pypi/rsa/3.4.2)) modules: `sudo -H pip install pyaes rsa`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user