Python 3.x 无法在dietpi Raspberry pi 4上安装discord模块
我正在尝试安装discord模块,但我的raspberry不配合。我需要discord模块来运行类discord bot来完成家庭作业。由于代码的stackoverflow限制,我删除了所有副本和替换,只发送了警告和错误 错误:Python 3.x 无法在dietpi Raspberry pi 4上安装discord模块,python-3.x,linux,raspberry-pi,discord.py,raspberry-pi4,Python 3.x,Linux,Raspberry Pi,Discord.py,Raspberry Pi4,我正在尝试安装discord模块,但我的raspberry不配合。我需要discord模块来运行类discord bot来完成家庭作业。由于代码的stackoverflow限制,我删除了所有副本和替换,只发送了警告和错误 错误: Building wheels for collected packages: multidict, yarl Building wheel for multidict (PEP 517) ... error ERROR: Command errored out
Building wheels for collected packages: multidict, yarl
Building wheel for multidict (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp1z1tiv8h
cwd: /tmp/pip-install-rrd10h4t/multidict
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files found matching 'multidict/_multidict.html'
warning: no previously-included files found matching 'multidict/*.so'
warning: no previously-included files found matching 'multidict/*.pyd'
warning: no previously-included files found matching 'multidict/*.pyd'
no previously-included directories found matching 'docs/_build'
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c multidict/_multidict.c -o build/temp.linux-armv7l-3.7/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for multidict
Building wheel for yarl (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpwsi1qkco
cwd: /tmp/pip-install-rrd10h4t/yarl
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.cache' found anywhere in distribution
warning: no previously-included files found matching 'yarl/*.html'
warning: no previously-included files found matching 'yarl/*.so'
warning: no previously-included files found matching 'yarl/*.pyd'
no previously-included directories found matching 'docs/_build'
writing manifest file 'yarl.egg-info/SOURCES.txt'
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c yarl/_quoting_c.c -o build/temp.linux-armv7l-3.7/yarl/_quoting_c.o
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for yarl
Failed to build multidict yarl
ERROR: Could not build wheels for multidict, yarl which use PEP 517 and cannot be installed directly
我在互联网上找不到任何帮助。我下载了最新的python 3.8.x源代码并编译了它。(我丢失了链接,但你可以在谷歌“如何在raspberry pi上安装python 3.8.6”上找到它)。它正在工作。这有帮助吗?是的,谢谢。我下载了最新的Python3.8.X源代码并编译了它。它开始工作,机器人现在运行24小时。