将pandas安装到python3.5而不是2.7
我正在尝试安装大pandas。 当我这样做时,它会自动安装到v 2.7的python安装。
如何强制pandas安装到python 3.5安装?
对于Python 3.4.2 Shell,Timo的建议有所不同:
在终端类型中
sudo apt-get install python3-pandas
然后在python shell类型中
import pandas
并没有错误!
我没有意识到我需要运行pip3而不是pip。 这些步骤解决了我的问题:
sudo apt-get install python3-pip sudo -H pip3 install pandas