正在为Twisted运行setup.py安装。。。MacOS中的错误

2024-10-01 04:59:15 发布

您现在位置:Python中文网/ 问答频道 /正文

在MacOS中安装Python 3.8.2中的scrapy时,显示:

Requirement already satisfied: six in /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages (from Automat>=0.3.0->Twisted) (1.15.0)
Requirement already satisfied: idna>=2.5 in /Library/Python/3.8/site-packages (from hyperlink>=17.1.1->Twisted) (2.10)
Building wheels for collected packages: Twisted
  Building wheel for Twisted (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/1w/wtkkznhd5x1f3kgx_x7yjh7r0000gn/T/pip-install-dh7kc0fc/Twisted/setup.py'"'"'; __file__='"'"'/private/var/folders/1w/wtkkznhd5x1f3kgx_x7yjh7r0000gn/T/pip-install-dh7kc0fc/Twisted/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/1w/wtkkznhd5x1f3kgx_x7yjh7r0000gn/T/pip-wheel-de42wco6 --python-tag cp38

Tags: pippyvarpackagessetuptwistedrequirementprivate
1条回答
网友
1楼 · 发布于 2024-10-01 04:59:15

使用命令:brew安装Python 3。将python 3.83更新为python 3.85。然后重新启动macos。使用命令:pip3安装scrapy。没关系

相关问题 更多 >