为什么我在安装时遇到这个错误:pip-install-piobjc framework Quartz



为什么我会得到这个错误

ERROR: Command errored out with exit status 1:
command: 'C:Userskodalanaconda3python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\kodal\AppData\Local\Temp\pip-install-odzer82v\pyobjc-framework-Quartz\setup.py'"'"'; __file__='"'"'C:\Users\kodal\AppData\Local\Temp\pip-install-odzer82v\pyobjc-framework-Quartz\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:UserskodalAppDataLocalTemppip-install-odzer82vpyobjc-framework-Quartzpip-egg-info'
cwd: C:UserskodalAppDataLocalTemppip-install-odzer82vpyobjc-framework-Quartz
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:UserskodalAppDataLocalTemppip-install-odzer82vpyobjc-framework-Quartzsetup.py", line 67, in <module>
py_limited_api=True,
File "C:UserskodalAppDataLocalTemppip-install-odzer82vpyobjc-framework-Quartzpyobjc_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.

我在这里猜一猜,但你的回溯显示你在Windows上,但pyobjc框架Quartz是一个macOS框架。同样的命令在我的macOS机器上运行良好。

相关内容

最新更新