总是同样的问题
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,但没有任何帮助
最有可能的问题是您在同一文件夹中有一个名为 telegram.py 的文件。您应该将文件命名为其他名称,它应该会自行解析。 顺便说一句,要使用 pip 安装,您将需要使用以下命令。 “pip 安装 python-telegram-bot”