如何为 Python 3 安装 Pandas? [英] How to install pandas for Python 3?
本文介绍了如何为 Python 3 安装 Pandas?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试通过执行以下命令为 Python 3 安装 pandas:
I try to install pandas for Python 3 by executing the following command:
sudo pip3 install pandas
结果我得到了这个:
Downloading/unpacking pandas
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pandas
Cleaning up...
No distributions at all found for pandas
也许有趣的是,Python 2 的安装工作正常.
Maybe it is interesting to note that installation for Python 2 works fine.
sudo pip install pandas
返回以下内容:
Requirement already satisfied (use --upgrade to upgrade): pandas in /usr/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/lib/python2.7/dist-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in /usr/lib/python2.7/dist-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.1 in /usr/lib/python2.7/dist-packages (from pandas)
Cleaning up...
添加
我刚刚通过以下方式安装了熊猫:
I have just installed pandas in the following way:
sudo apt-get install python3-pandas
推荐答案
试试这个:
sudo apt-get install python3-pip
sudo -H pip3 install pandas
这篇关于如何为 Python 3 安装 Pandas?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文