Compiling with an SDK that doesn't seem to exist: /Developer/SDKs/MacOSX10.6.sdk

后端 未结 1 1698
滥情空心
滥情空心 2021-01-21 03:38

I\'m trying to install rpy2 for Python3 with the following command:

easy_install-3.2 rpy2

This gives a few warnings and an error:



        
相关标签:
1条回答
  • 2021-01-21 03:48

    What is happening is that python was built with a pre-4.3 version of Xcode where the tools and SDKs were installed in /Developer. This is no longer the case with Xcode 4.3 where the tools and SDKs are part of the Xcode.app bundle. It also looks like python was compiled using gcc rather than clang.

    I would recommend dumping the installation of python3 you have and installing it via macports, which will use the latest Xcode to build its ports and will therefore be able to compile additional python modules.

    Once you have installed macports, simply do:

    $ sudo port install python33
    

    There is also a good chance those python modules can be installed by simply doing:

    $ sudo port install whizzopymod
    

    EDIT: Scratch that last part as macports doesn't have rpy2 for python3. You'll have to continue using easy_install I guess.

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