Do I seriously need to install Xcode and compile PyObjC as a result of 1.7.6 update?

前端 未结 1 1425
南旧
南旧 2020-12-31 19:25

There must be an easier way.

I get this warning when attempting to start my app today:

/Applications/GoogleAppEngineLauncher.app/Contents/Resource

相关标签:
1条回答
  • 2020-12-31 20:14

    The PyObjC installer only requires Xcode because it requires a compiler. However, you can easily get a compiler without downloading Xcode.

    Just click this link, and sign in with your Apple Developer ID, or register for a free Apple Developer Account if you don't already have one. Then search the page for the Command Line Tools, download them, and install them.

    Once you have installed the Command Line Tools, you can install PyObjC using the instructions on the website.

    The website details how to install using either pip, easy_install, or manually. I will briefly outline the first two methods below (manual installation is slightly more involved, and you should read the instructions on the site.):

    pip:

    env CC=clang pip install -U pyobjc-core
    env CC=clang pip install -U pyobjc
    

    easy_install:

    easy_install -U pyobjc-core
    easy_install -U pyobjc
    

    manual installation:

    Scroll to the end of this webpage, and read the pertinent information.

    0 讨论(0)
提交回复
热议问题