我用python2.7安装了pandas.我也安装了python 3.4.
我无法在python3中加载pandas
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'
>>>
Run Code Online (Sandbox Code Playgroud)
我知道我需要单独安装它.我如何在python 2.7和3.4中使用pandas?我顺便使用mac.
小智 6
您可能会发现系统上有一个名为“ pip3”的脚本,因为python3.4将pip捆绑在python的一面。
$ pip3 install pandas
Run Code Online (Sandbox Code Playgroud)