No module named objc

user573949 picture user573949 · Jan 13, 2011 · Viewed 8.1k times · Source

I'm trying to use cocoa-python with Xcode but it always calls up the error:

Traceback (most recent call last):
  File "main.py", line 10, in <module>
    import objc
ImportError: No module named objc

This seems to be because dispite all my attempts to install or find objc and the other modules used by that file, they are simply not on my computer that I can tell, so does anyone know where I can download the actual files (or could put up their own copies?) as in objc.py, Foundation.py, AppKit.py and PyObjCTools.py?

Answer

Anderson Rodrigues picture Anderson Rodrigues · May 5, 2016

In MacOSX put on console:

pip install -U pyobjc