Clearing all other installed pythons on OS X

For God's sake, I'm losing my mind. I am on OS X mavericks. It seems that I installed a lot of pythons (Anaconda, EDA [something like this] ...) and I just installed it from Macports. Then also from Macports, I installed a module for python called py-graph-tool. Now when I import this module in python, I get this error:

Fatal Python error: PyThreadState_Get: no current thread Abort trap: 6 

I found the following from this question : "this error appears when a module tries to use a python library different from the one used by the interpreter when you mix two different pythons."

So, I think the solution would be to clear all other pythons. Therefore, my question is: how to clean all the other pythons?

0
source share
1 answer

Assuming you want to use Anaconda Python for scientific work ... follow these steps:

  • create a file called .bashrc in your home directory ( ~ )
  • add the following to it: export PATH=~/anaconda/bin:$PATH
  • close all open terminals

Now when you open a new terminal, python should call Anaconda Python.

0
source

All Articles