[英]Old version of Telethon
我有個問題。 去年,我開發了一個使用套接字和Telethon庫(通過pip安裝)的Telegram網關。 問題是該項目安裝在另一台PC上,並使用了Telethon的舊版本,基本可以使用線程(對於新的Telethon版本,我無法將線程與套接字一起使用,因此已被更改)。
我需要安裝相同的Telethon版本才能使用相同的網關。
在PC中,如果我運行命令:
點播節目
它顯示以下消息:
您正在使用pip版本8.1.1,但是可以使用版本19.1.1。 您應該考慮通過等升級...
然后,我需要安裝相同版本的telethon(8.1.1)。 但是,如果我嘗試通過以下命令將其安裝在另一台PC上:
pip3 install telethon == 8.1.1
它顯示以下紅色錯誤消息:找不到Telethon == 8.1.1的匹配發行版
為什么? 為了運行舊的網關,我確實需要使用相同版本的telethon。
非常感謝你!!!
該行是pip打印的一條消息,告訴您考慮升級pip本身。 您要查找的版本號印在下面:
$ pip3 show telethon You are using pip version 8.1.1, however version 19.0.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Name: Telethon Version: 1.6.2 Summary: Full-featured Telegram client library for Python 3 Home-page: https://github.com/LonamiWebs/Telethon Author: Lonami Exo Author-email: totufals@hotmail.com License: MIT Location: /usr/local/lib/python3.7/site-packages Requires: rsa, pyaes Required-by:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.