Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
379 views
in Technique[技术] by (71.8m points)

python - How to solve pyobjc installation problem?

pip install pyobjc-framework-Quartz
Defaulting to user installation because normal site-packages is not writeable
Collecting 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 filespython38python.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('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:UsersCharanAppDataLocalTemppip-pip-egg-info-v7jcwbrn'
         cwd: C:UsersCharanAppDataLocalTemppip-install-qnwuu7s1pyobjc-framework-Quartz
    Complete output (7 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:UsersCharanAppDataLocalTemppip-install-qnwuu7s1pyobjc-framework-Quartzsetup.py", line 64, in <module>
        Extension(
      File "C:UsersCharanAppDataLocalTemppip-install-qnwuu7s1pyobjc-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.
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The pyobjc modules are only for MAC OSX. https://pyobjc.readthedocs.io/en/latest/ . Looks like you are trying to install on windows PC.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...