【问题标题】:Error installing telethon with pip3 install telethon使用 pip3 install telethon 安装 Telethon 时出错
【发布时间】:2020-10-06 14:17:43
【问题描述】:

当我尝试从 pip3 安装 Telethon 时出现此错误,为什么? 我在 cmd 中的 32 位 Windows 10 中运行它。

C:\Users\JUAN>pip3 install telethon

Collecting telethon
  Using cached Telethon-1.16.4-py3-none-any.whl (483 kB)
Collecting pyaes
  Using cached pyaes-1.6.1.tar.gz (28 kB)
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\juan\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\JUAN\\AppData\\Local\\Temp\\pip-install-i2of7eld\\pyaes\\setup.py'"'"'; __file__='"'"'C:\\Users\\JUAN\\AppData\\Local\\Temp\\pip-install-i2of7eld\\pyaes\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\JUAN\AppData\Local\Temp\pip-pip-egg-info-pffewwkh'
         cwd: C:\Users\JUAN\AppData\Local\Temp\pip-install-i2of7eld\pyaes\
    Complete output (24 lines):
    Traceback (most recent call last):
      File "c:\users\juan\appdata\local\programs\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 2867, in get_entry_map
        ep_map = self._ep_map
      File "c:\users\juan\appdata\local\programs\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 2825, in __getattr__
        raise AttributeError(attr)
    AttributeError: _ep_map

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\JUAN\AppData\Local\Temp\pip-install-i2of7eld\pyaes\setup.py", line 10, in <module>
        setup(name = 'pyaes',
      File "c:\users\juan\appdata\local\programs\python\python38-32\lib\distutils\core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "c:\users\juan\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\dist.py", line 423, in __init__
        for ep in pkg_resources.iter_entry_points('distutils.setup_keywords'):
      File "c:\users\juan\appdata\local\programs\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 657, in <genexpr>
        for entry in dist.get_entry_map(group).values()
      File "c:\users\juan\appdata\local\programs\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 2869, in get_entry_map
        ep_map = self._ep_map = EntryPoint.parse_map(
      File "c:\users\juan\appdata\local\programs\python\python38-32\lib\site-packages\pkg_resources\__init__.py", line 2550, in parse_map
        raise ValueError("Entry points must be listed in groups")
    ValueError: Entry points must be listed in groups
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

【问题讨论】:

  • 去 pip.exe 所在的位置并尝试从那里运行命令
  • 这对我不起作用

标签: python pip python-telegram-bot telethon


【解决方案1】:

我通过卸载python和pip解决了这个问题,我的python版本是3.8.5,最新版本是3.8.9。

【讨论】:

  • 截至 2020 年 10 月 6 日的最新 python 版本是 3.8.6,而不是 3.8.9
  • 查看网站xd
  • 最新版本是3.9,抱歉:),肯定是今天发布的,或者昨天晚了
猜你喜欢
  • 2014-05-20
  • 1970-01-01
  • 2021-07-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-12-10
  • 1970-01-01
  • 2017-03-11
相关资源
最近更新 更多