pythonterminalversionpyobjcinteractive-shell

Print pyObjC version installed?


I've recently started programming "Objective C" in python using the excellent pyObjC extension. I'm using macOS High Sierra (10.13.4) with apple's stock python 2.7.10 installation. That part was easy to find out using an interactive python shell:

>>> import platform
>>> platform.python_version()

How can I do the same for the installed pyObjC extension?


Solution

  • Using an interactive shell:

    >>> import objc
    >>> objc.__version__
    

    Using pip in terminal:

    pip list | grep pyobjc-core