首页 > 解决方案 > 当我尝试安装 discord.py 它给了我错误

问题描述

正如标题所说,当我尝试安装 discord.py 时,无论我使用哪个版本,它都会给我错误,而且我的操作系统是 Ubuntu 19

viktor@viktor-X541NC:~$ pip install discord.py==0.16.12
Collecting discord.py==0.16.12
  Using cached https://files.pythonhosted.org/packages/97/3c/2a97b47fd8839f8863241857bbd6a3998d1de1662b788c8d9322e5a40901/discord.py-0.16.12.tar.gz
Collecting aiohttp<1.1.0,>=1.0.0 (from discord.py==0.16.12)
  Using cached https://files.pythonhosted.org/packages/09/5a/7b81ea8729d41f44c6fe6a116e466c8fb884950a0061aa3768dbd6bee2f8/aiohttp-1.0.5.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-asBsLL/aiohttp/setup.py", line 60, in <module>
        raise RuntimeError("aiohttp requires Python 3.4.2+")
    RuntimeError: aiohttp requires Python 3.4.2+

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-asBsLL/aiohttp/

标签: pythonpipdiscord

解决方案


如果我错了,请纠正我,但第 10 行显示raise RuntimeError("aiohttp requires Python 3.4.2+")

这是什么意思?

你没有安装python,或者,如果安装了,版本不是3.4.2+。


推荐阅读