• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

为Python 3安装 pandas ?

用户头像
it1352
帮助1

问题说明

我尝试通过执行以下命令为Python 3安装熊猫:

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

正确答案

#1

尝试一下:

sudo apt-get install python3-pip
sudo -H pip3 install pandas

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /reply/detail/tanhcgkjic
系列文章
更多 icon
同类精品
更多 icon
继续加载