Reputation: 5655
I have pandas installed with python2.7. I also have python 3.4 installed.
I can't load pandas in python3
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 00:54:21)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'pandas'
>>>
I understand I need to install it separately. How do I go about having pandas in both python 2.7 and 3.4 ? I am using a mac by the way.
Upvotes: 7
Views: 8013
Reputation: 1863
In addition to the fine answers above, please note that pandas 0.24.x releases will be the last to support Python 2! pandas 0.24.x release notes
Quote: "Warning The 0.24.x series of releases will be the last to support Python 2. Future feature releases will support Python 3 only"
So, co-existence, it seems, would be limited to the 0.24.x version as a common version for both python 2 and 3.
Upvotes: 1
Reputation: 1990
You might find that you have a script called "pip3" on you system as python3.4 bundles pip in along side of python.
$ pip3 install pandas
Upvotes: 6