2016-07-01 13 views
0

Ich versuche Pandas-Modul (das ich über Pip installieren) mit Python 3.5 zu machen. Wenn ich import pandas in Python tue 2.7 alles ist in Ordnung, aber ich erhalte die folgenden Fehler mit Version 3.5:Pandas-Modul und Python 3 in OSX

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

Jede Idee, warum es nicht funktioniert? Vielen Dank.

+0

Sie installierten es für Python 2.7 * nur *. Sehen Sie hier für weitere Informationen http://stackoverflow.com/questions/10763440/how-to-install-python3-version-of-package-via-pip-on-ubuntu – Bahrom

+0

Ich überprüfe es, aber ich bin auf OSX – loukios

+0

Gleiches Konzept, es gibt noch andere ähnliche Fragen - hier ist eine andere: http://StackOverflow.com/Questions/2812520/Pip-dealing-with-multiple-python-Versionen – Bahrom

Antwort

0

In Python werden Module in verschiedenen virtuellen Umgebungen installiert. Sie müssen also die entsprechende virtuelle Umgebung aktivieren und installieren:

source activate python3 # your virtual environment name for python 3. 
pip install pandas