Use MacOSX Anaconda's python.app or pythonw
I'm having a problem using Anaconda's python to run a GUI (same error as this guy has, but for matplotlib in my case: http://stackoverflow.com/questions/17824693/pyqtgraph-with-anaconda-python-on-mac-gives-nib-error/17861162). Is there a way to get PyCharm to run pythonw instead of python when running/debugging a program?
请先登录再写评论。
you can add pythonw as a local interpreter in Settings->Python Interpreters and use it to run your program.
Invalid Python SDK
Cannot set up python SDK
at /Users/luke/anaconda/bin/pythonw.
The SDK seems invalid.
With a whole bunch of errors in the IDE since it doesn't find any packages (Packages list in the interpreters window for pythonw is empty). So I use python as the default interpreter so that the IDE has access to the packages, and I set pythonw as the interpreter for the run configuration. I can now run it normally.
Unfortunately this doesn't work when running in debug, with the Console error:
/Users/luke/anaconda/python.app/Contents/MacOS/python: can't open file '/Applications/PyCharm': [Errno 2] No such file or directory
I am getting a very similar issue to Luke in his second post has this been resolved or addressed some where ter?