can't import conda installed packages into spyder' ipython console
1,170 views
Skip to first unread message
rick debbout
unread,
Mar 25, 2016, 1:26:42 PM3/25/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spyder
I installed PySal like so -> conda install pysal
I ran a python console in the terminal and import pysal...No probs
I run an Ipython console in the terminal and import pysal...No problem
Open spyder, I try to import pysal at the Ipython console...no luck!
move to the python console, still No Luck.
sys.prefix in spyder consoles reads '/usr/' sys.prefix at the terminal reads '/home/rick/anaconda2'
then I read to do Preference->Console->Advanced Settings->and switch the python executable to 'home/rick/anaconda2/bin/
python'
now if I try to open an Ipython kernel it fails with this error:
An error ocurred while starting the kernel
Either: Your IPython frontend and kernel versions are incompatible or You don't have IPython installed in your external interpreter. In any case, we're sorry but we can't create a console for you.
but, if I use the python console in Spyder I can now import pysal.
What is this all about?
~rick
Jitse Niesen
unread,
Mar 26, 2016, 11:08:20 AM3/26/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to spyder
I think you have two versions of Python installed. One comes with the system and the program probably is /usr/bin/python, the other comes with Anaconda and the program is /home/rick/Anaconda2/bin/python. When you open an (i)python console or when you do 'conda install', the Anaconda python environment is used (as it should be). However, it seems that when you open spyder, the system Python environment is used. Maybe you don't have spyder in the Anaconda environment (in which case, do: conda install spyder). If you do have spyder installed in the Anaconda environment, try giving the full path: /home/rick/Anaconda2/bin/spyder.