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.
Python version support Officially Python 3.8, 3.9 and 3.10.
Although Python 2 is almost outdated, it is still used today by some software professionals due to some of its special features.
Before you install Pandas, you must bear in mind that it supports only Python versions 3.7, 3.8, and 3.9. Therefore, if you have not installed Python on your computer or have an older version of Python installed, you must install a version that supports Pandas on your computer.
Don't "mix". When the various packages and modules are available in Python 3, use the 2to3 conversion to create Python 3. You'll find some small problems. Fix your Python 2 so that your package works in Python 2 and also works after the conversion.
Figured it out.
python3 -m pip install pandas
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With