0

I'm trying to make pandas module (that I've install through pip) working with Python 3.5. When I'm doing import pandas in Python 2.7 everything is fine, but I get the following error with 3.5 version:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'pandas'

Any idea why it's not working ? Thanks.

loukios
  • 245
  • 3
  • 13
  • You installed it for Python 2.7 *only*. See here for more info http://stackoverflow.com/questions/10763440/how-to-install-python3-version-of-package-via-pip-on-ubuntu – Bahrom Jul 01 '16 at 20:43
  • I'm checking it, but I'm on OSX – loukios Jul 01 '16 at 20:45
  • Same concept, there are other similar questions too - here's another one: http://stackoverflow.com/questions/2812520/pip-dealing-with-multiple-python-versions – Bahrom Jul 01 '16 at 20:46

1 Answers1

0

In python, modules are installed in different virtual environment. So you need to activate the corresponding virtual environment and install, in termial:

source activate python3  # your virtual environment name for python 3.
pip install pandas
THN
  • 3,351
  • 3
  • 26
  • 40