我无法安装 pip telegram-bot

问题描述 投票:0回答:1

总是同样的问题

ImportError: cannot import name 'Bot' from partially initialized module 'telegram' (most likely due to a circular import) (C:\Users\123da\AppData\Local\Temp\pip-install-ai4putmy\telegram-bot_452503f4290a44f2bd01ceacd84614ee\telegram\__init__.py)
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

尝试在pip中卸载telegram,也升级pip,但没有任何帮助

python pip telegram telegram-bot python-telegram-bot
1个回答
0
投票

最有可能的问题是您在同一文件夹中有一个名为 telegram.py 的文件。您应该将文件命名为其他名称,它应该会自行解析。 顺便说一句,要使用 pip 安装,您将需要使用以下命令。 “pip 安装 python-telegram-bot”

© www.soinside.com 2019 - 2024. All rights reserved.