gpt4 book ai didi

python - linux 模块未找到错误 : No module named '_ctypes

转载 作者:太空宇宙 更新时间:2023-11-04 09:12:05 28 4
gpt4 key购买 nike

[root@ONEVPS190105040754 ~]# youtube-dl -V
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/local/python3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/bin/youtube-dl/__main__.py", line 16, in <module>
File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 15, in <module>
File "/usr/local/bin/youtube-dl/youtube_dl/options.py", line 8, in <module>
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/__init__.py", line 3, in <module>
File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 9, in <module>
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 7, in <module>
File "/usr/local/python3/lib/python3.7/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
[root@ONEVPS190105040754 ~]# yum install libffi-dev
Loaded plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.metrocast.net
* extras: mirrors.maine.edu
* updates: mirrors.advancedhosters.com
No package libffi-dev available.
Error: Nothing to do

我打算使用 youtube-dl,但告诉我“ModuleNotFoundError:没有名为‘_ctypes’的模块”。在网上找了一些方法,比如“yum install libffi-dev”,还是不行

Centos7

最佳答案

这为我在 CentOS7 上解决了同样的错误:

yum install libffi-devel

引用:issue31652

关于python - linux 模块未找到错误 : No module named '_ctypes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54094550/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com