Adrian, >From Terminal - Python interpreter path below:
>>> import sys >>> sys.path ['', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spyder-1.1.3-py2.7.egg', '/Library/Python/2.7/site-packages/PyMetis-2014.1-py2.7-macosx-10.10-intel.egg', '/Library/Python/2.7/site-packages/networkx-1.9.1-py2.7.egg', '/Library/Python/2.7/site-packages/decorator-3.4.0-py2.7.egg', '/Library/Python/2.7/site-packages/metis-0.1a-py2.7.egg', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages', '/Library/Python/2.7/site-packages'] >>> >From Spyder - Python Console path below: >>> sys.path ['', '/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/spyderlib/widgets/externalshell', '/Library/Python/2.7/site-packages/networkx-1.9.1-py2.7.egg', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/spyder-1.1.3-py2.7.egg', '/Users/cbhe/scripts', '/Users/cbhe/Documents/Python User Files 2015/Development Code', '/Applications/Spyder-Py2.app/Contents/Resources', '/Applications/Spyder-Py2.app/Contents/Resources/lib/python27.zip', '/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7', '/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/plat-darwin', '/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/plat-mac', '/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/plat-mac/lib-scriptpackages', '/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/lib-tk', '/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/lib-old', '/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/lib-dynload', '/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/site-packages.zip', '/Applications/Spyder-Py2.app/Contents/Resources/lib/python2.7/site-packages'] >>> >From Spyder - When I try to open an IPython Console I get: An error ocurred while starting the kernel I don’t understand why this error should suddenly appear. I uninstalled Spyder and then reinstalled it from the .dmg download but still got the same error. >From the above it seems clear that the two paths are different. Now, how does >one (hopefully easily) correct the Spyder system path?? Chris > On 23 Mar 2015, at 6:02 am, Adrian Klaver <[email protected]> wrote: > > On 03/21/2015 11:58 PM, Chris Edwards wrote: >> Adrian, >> > >> Python 2.7.8 64bits, Qt 4.8.6, PyQt4 (API v2) 4.11.1 on Darwin >> >> --------------------------------------------------------------- >> >> There was no change in behaviour and I still can’t import NetworkX from >> within Spyder. I have actually successfully executed a program using >> NetworkX from the command line! >> >> I think what I need to do is somehow make Spyder recognise Python 2.7.9 >> but feel I am in some sort of infinite loop here! > > End of previous post edited: > > While you are in the Python interpreter I would also do: > > >>> import sys > >>> sys.path > > This will show you the PYTHONPATH the system interpreter is seeing. > > Repeat this in your Spyder Python/IPython consoles to determine what > PYTHONPATH they are seeing. > >> >> I gather from searching the web that I am not the first to have run into >> problems with multiple versions of Python and wonder if his has been >> addressed somewhere that I haven’t discovered. >> >> Anyway thanks for the help so far. >> >> Chris >> >> >> >> > > -- > Adrian Klaver > [email protected] > > -- > You received this message because you are subscribed to a topic in the Google > Groups "spyder" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/spyderlib/RxXRhb2pQOI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/spyderlib. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/spyderlib. For more options, visit https://groups.google.com/d/optout.
