我正在尝试将我的不和机器人部署到AWS。错误发生在requirements.txt文件中,该文件是使用pip freeze
自动创建的。我已经从控制台手动安装pycord,因为之前同样的失败,但失败仍然存在。我使用pycord,因为我需要使用斜杠命令。(discord.py以前在AWS上运行良好,但没有斜杠命令)
当我直接从我的电脑上运行时,机器人工作得很好。
[stdout]Collecting discord==1.7.3
[stdout] Using cached discord-1.7.3-py3-none-any.whl (1.1 kB)
[stderr]ERROR: Ignored the following versions that require a different python version: 0.0.7 Requires-Python >=3.8.1; 0.0.8 Requires-Python >=3.8.1; 0.0.9 Requires-Python >=3.8.1; 0.0.9rc1 Requires-Python >=3.8.1; 1.0.0 Requires-Python >=3.8.1; 1.0.1 Requires-Python >=3.8.1
[stderr]ERROR: Could not find a version that satisfies the requirement discord-ext-bot==1.0.1 (from versions: none)
[stderr]ERROR: No matching distribution found for discord-ext-bot==1.0.1
pip install py-cord -U
或
pip install git+https://github.com/Pycord-Development/pycord
(第二个方法需要git)