如何在mac上安装xlrd软件包?

2024-04-19 16:15:33 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在mac上安装xlrd包,以便在Python3.5.4中使用,以便能够读取excel文档。你知道吗

我已打开“终端”并键入:

pip install xlrd 

但我一直有个错误:

Downloading/unpacking xlrd
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not find any downloads that satisfy the requirement xlrd
Cleaning up...
No distributions at all found for xlrd
Storing debug log for failure in /Users/Elizabeth/.pip/pip.log

Tags: installpip文档log终端for键入mac
1条回答
网友
1楼 · 发布于 2024-04-19 16:15:33

尝试:

pip install  index-url=https://pypi.python.org/simple/ xlrd

最常见的问题是pip没有通过SSL连接到简单索引。发布调试日志以确认这一点。Pip也可能已过时,因此要更新它,请尝试:

sudo pip install  index-url https://pypi.python.org/simple/  upgrade pip

相关问题 更多 >