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

如何解决pyobjc安装问题?

如何解决pyobjc安装问题?

繁星点点滴滴 2023-03-16 09:09:00
pip install pyobjc-framework-QuartzDefaulting to user installation because normal site-packages is not writeableCollecting pyobjc-framework-Quartz  Using cached pyobjc-framework-Quartz-6.2.2.tar.gz (3.4 MB)    ERROR: Command errored out with exit status 1:     command: 'c:\program files\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Charan\\AppData\\Local\\Temp\\pip-install-qnwuu7s1\\pyobjc-framework-Quartz\\setup.py'"'"'; __file__='"'"'C:\\Users\\Charan\\AppData\\Local\\Temp\\pip-install-qnwuu7s1\\pyobjc-framework-Quartz\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Charan\AppData\Local\Temp\pip-pip-egg-info-v7jcwbrn'         cwd: C:\Users\Charan\AppData\Local\Temp\pip-install-qnwuu7s1\pyobjc-framework-Quartz\    Complete output (7 lines):    Traceback (most recent call last):      File "<string>", line 1, in <module>      File "C:\Users\Charan\AppData\Local\Temp\pip-install-qnwuu7s1\pyobjc-framework-Quartz\setup.py", line 64, in <module>        Extension(      File "C:\Users\Charan\AppData\Local\Temp\pip-install-qnwuu7s1\pyobjc-framework-Quartz\pyobjc_setup.py", line 420, in Extension        if "clang" in get_config_var("CC"):    TypeError: argument of type 'NoneType' is not iterable    ----------------------------------------ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
查看完整描述

1 回答

?
浮云间

TA贡献1829条经验 获得超4个赞

pyobjc 模块仅适用于 MAC OSX。 https://pyobjc.readthedocs.io/en/latest/。看起来您正在尝试在 Windows PC 上安装。



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

添加回答

举报

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