How to get IntelliJ on OS X resolve python standard modules like datetime?
I am running OS X 10.6 with the latest Nika build 117.798 with the python plugin 2.9.2. After enabling the plugin, updating the file associations, creating a python module, adding a python sdk (home path /System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6), and successfully creating and running files with debugging etc. working correctly, standard modules are still unresolved. I have seen a few posts across the web on how to resolve it but those have not yet worked.
Is the reason datetime is unresolved because it doesn't have an associated .py file? Installed eggs or other modules are fine. The autocompletion correctly finds it in the dyno-load folder (/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/datetime.so) but I don't have source installed. Is the only way around this to install a python version from source?
Thanks!
请先登录再写评论。
Yes I had to install Python. The default one from Apple did not provide the required sources to build the caches from.
I installed Python 2.7.3. Then I followed the steps here to get it to conform to OS X locations:
http://wolfpaulus.com/journal/mac/installing_python_osx/
So it seems that the default OS X python install is simply not sufficient to make full use of IntelliJ/PyCharm's functionality.