I checked a few other SO answers and searched several times and could not find someone who asked / answered this:
I am running Ubuntu 12.04. I have python2.7 and python3.2 installed. (I ran sudo apt-get install python-numpy, python3-numpy etc. with scipy). I ran sudo apt-get install python-pandas. It works great with python2.7. It is not imported in python3.2. Then I changed my $ PYTHONPATH to the directory in which pandas was installed, fully aware that this could create a problem:
/usr/lib/pymodules/python2.7
Now when I try to import, I get
>>> import pandas Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/pymodules/python2.7/pandas/__init__.py", line 10, in <module> import pandas.lib as lib ImportError: /usr/lib/pymodules/python2.7/pandas/lib.so: undefined symbol: _Py_ZeroStruct
So I obviously missed something. As a side note, since I just did all these python installations myself and am still involved, my PYTHONPATH may need to be updated; now the only thing in it is the directory mentioned above. Are there other directories that I should have there as standard?
(If you need more information about my system, etc., just comment.)
dwanderson
source share