为了账号安全,请及时绑定邮箱和手机立即绑定

在 MacOS 中运行 setup.py install for Twisted ... 错误

在 MacOS 中运行 setup.py install for Twisted ... 错误

Qyouu 2023-10-06 18:55:50
当我在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
查看完整描述

1 回答

?
眼眸繁星

TA贡献1873条经验 获得超9个赞

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



查看完整回答
反对 回复 2023-10-06
  • 1 回答
  • 0 关注
  • 88 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信